Hello, as I found out, pre-setting CXX_FLAGS for the cache file in the highest CMakeLists.txt file is necessary - before the PROJECT(...) keyword. But how to tell CMake to use different CXX_FLAGS in different directories (of course - in one project)? -- ds