1. setting CMAKE_CXX_FLAGS 2. invoking add_definitions 3. setting CMAKE_REQUIRED_FLAGS I do have C and CXX languages specified in the project command. Has anyone tried to do something like this and succeeded, or maybe such functionality in CMake is non-existent ? Many thanks in advance. With best regards, Wojciech