CMake/Tests/RunCMake/CMP0057/CMP0057-WARN.cmake

6 lines
87 B
CMake

set(MY_LIST foo bar)
if("foo" IN_LIST MY_LIST)
message("foo is in MY_LIST")
endif()