[CMake] Idomatic cmake: Supporting gcc, icc, and clang with custom flags for each?

2016-05-16 Thread TCW via CMake
Hello all, On linux, what's the correct way to support building with several different C compilers, each with some extra compiler-specifc flags for Debug and Release modes? (Eventually I'll need to add Visual Studio on Windows too. ) For now, I'm following what's mentioned in the cmake FAQ and

[CMake] Linking CXX executable xxx :undefined reference to `stlp_std::cout'

2016-05-16 Thread Chaos Zhang
Hi all, I was trying to convert an existed c++ project to CMake. The existed worked well with makefile, and i have converted similar one successfully. but when i try to convert this one, some confusing errors occurred, as below: 18:22:10: Running steps for project encryption... 18:22:10: Starting