Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18987] Windows: CLI: Build fails if GTEST is not present on system

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-06-10T17:47:41.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-06-08T21:04:42.000+0000
Updated2015-07-02T18:15:37.000+0000

Description

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

Comments

  1. Gary Mathews 2015-06-09

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/265
  2. Ewan Harris 2015-07-02

    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

JSON Source