CMake/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt

6 lines
165 B
CMake

add_library(foo STATIC foo.cpp)
string(TOLOWER ${CMAKE_CXX_COMPILER_ID} compiler_id)
target_compile_definitions(foo PRIVATE Foo=$<CXX_COMPILER_ID:${compiler_id}>)