-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't run compile tests unless package is found
The cmake_cxx_source_compiles() command sets internal cache vars, so they won't get overwritten on a second run. This is relevant if GTest sources are not found on system, we run the CMake configure step, install libgtest-dev, and run CMake again. Even though the package is there, internal variables prevent find_package from updating the found/not_found status. Also, pass an adequate name of the _FOUND variable to find_package_handle_standard_args(), case is relevant.
- Loading branch information
1 parent
77d5da2
commit 6063082
Showing
1 changed file
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters