Fails to evaluate generator-expression: PLATFORM_ID
# CMakeLists.txt
# This throws an error during the config step
include($<if:$<PLATFORM_ID:Linux,Unix,Cygwin,MinGW,MSYS>:GNUInstallDirs,./.no-include>)
# ...
# This simply sets a string to the variable name, NOT evaluated
set(TEST $<if:$<PLATFORM_ID:Linux>,GNUInstallDirs,/.no-include>)
message("--------------------------------------DEBUG")
include(CMakePrintHelpers)
cmake_print_variables(TEST)
message("--------------------------------------DEBUG")
Hi. I'm trying to conditionally include GNUInstallDirs
module in the code above, but cmake fails to evaluate expression properly. Any help?
Edited by hinell