You’re close! The correct syntax for IF
is
IF(NOT <expression>)
So in your specific case, you want
IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
You’re close! The correct syntax for IF
is
IF(NOT <expression>)
So in your specific case, you want
IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux")