mirror of
https://github.com/reactos/CMake.git
synced 2025-01-31 17:12:49 +00:00
7e187eeacd
When running CMake from the build tree the CMAKE_ROOT is the entire source tree. Fix the CMP0017 check to be specific to the Modules/ directory under CMAKE_ROOT so that Tests/ does not count. Fix the FindPackageTest modules to include FPHSA by full path from CMAKE_ROOT so that they do not include the local FPHSA which reports an error meant to test that CMP0017 works.
11 lines
349 B
CMake
11 lines
349 B
CMake
set(LOC_FOO TRUE)
|
|
|
|
set(LotsOfComponents_AComp_FOUND TRUE)
|
|
set(LotsOfComponents_BComp_FOUND FALSE)
|
|
set(LotsOfComponents_CComp_FOUND TRUE)
|
|
|
|
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
|
|
|
find_package_handle_standard_args(LotsOfComponents REQUIRED_VARS LOC_FOO
|
|
HANDLE_COMPONENTS)
|