Project: titanium
Issue TIMOB-18987: Windows: CLI: Build fails if GTEST is not present on system
h5.Description When building a project, if GTEST is not on the system then the build fails with the below {code} [WARN] CMake Error at C:/ProgramData/Titanium/mobilesdk/win32/4.1.0.v20150604094312/windows/cli/vendor/cmake/share/cmake-3.1/Modules/FindPackageHandl eStandardArgs.cmake:138 (message): Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) Call Stack (most recent call first): C:/ProgramData/Titanium/mobilesdk/win32/4.1.0.v20150604094312/windows/cli/vendor/cmake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:3 74 (_FPHSA_FAILURE_MESSAGE) C:/ProgramData/Titanium/mobilesdk/win32/4.1.0.v20150604094312/windows/cli/vendor/cmake/share/cmake-3.1/Modules/FindGTest.cmake:204 (FIND_PACKAGE_HAN DLE_STANDARD_ARGS) cmake/internal_utils.cmake:106 (find_package) Native/CMakeLists.txt:33 (include) [INFO] -- Configuring incomplete, errors occurred! See also "C:/Users/Windo_000/AppData/Local/Temp/testCreate/wp.x86/CMakeFiles/CMakeOutput.log". ERROR | ti run exited with error code 1 {code} Removing [this line|https://github.com/appcelerator/titanium_mobile_windows/blob/master/templates/build/cmake/internal_utils.cmake#L106] makes the build pass. h5.Steps To Reproduce 1. Remove GTEST from your system 2. Create a titanium project using {{appc new}} or {{ti create}} 3. Build the project using {{appc run}} or {{ti build}} h5.Actual Result The build will fail with the above error h5.Expected Result The build should not fail
Story points: 3