Description
When building a project, if GTEST is not on the system then the build fails with the below
[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
Removing [this line](
https://github.com/appcelerator/titanium_mobile_windows/blob/master/templates/build/cmake/internal_utils.cmake#L106) makes the build pass.
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
Actual Result
The build will fail with the above error
Expected Result
The build should not fail
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/265
Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 Appc Studio: 4.1.0.201507010234 When GTEST is not present on the system the build does not fail Closing ticket