Question: I have a list of vars definedinside a cmake which is called using from main CMakeLists.txt: My gen_sigs.cmake: I want to use this list to add preprocessor definitions to the compiler command line like (in main CMakeLists.txt): I tried ...

Question: I was working with CMake. I have seen many CMake files and found there is a different release flag value set. In one file I found: set(CMAKE_CXX_FLAGS_RELEASE “-O3”) In another: set(CMAKE_CXX_FLAGS_RELEASE “-O2”) and in other I found: set(CMAKE_CXX_FLAGS_RELEASE “-O1”) ...