Hello,
I'm working with CMake, and my program compiles fine with g++. However, I also wish to compiled it with bcc32 and cl.
I am running into an issue -- I'm telling cmake to use those compilers by doing a command line somewhat like "cmake -DCMAKE_CXX_COMPILER=cl" or whatnot, and it picks up the compiler correctly (ie, in that case, the MSVC variable is set to true).
However, it still seems to be using the gnu command line arguments, which causes the compiler to fail on the CXX compiler test (ie, it tries to use -o to specify and output file for cl instead of /Fe, and instead of -e for bcc32).
Is there some proper way to specify which compiler to use, or some way to fix this?