mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
Set policy CMP0126 to the value used in the calling project. It may affect toolchain file behavior.
8 lines
208 B
CMake
8 lines
208 B
CMake
get_property(_IN_TC GLOBAL PROPERTY IN_TRY_COMPILE)
|
|
if(_IN_TC)
|
|
cmake_policy(GET CMP0126 cmp0126)
|
|
set(VAR 1)
|
|
set(VAR 2 CACHE STRING "")
|
|
message("try_compile CMP0126='${cmp0126}' VAR='${VAR}'")
|
|
endif()
|