[CMake] SET_CXX_COMPILER
Sören Freudiger
muffmolch at gmx.de
Thu Feb 16 03:12:37 EST 2006
Hi folks
two questions:
1. my macro:
MACRO(SET_CXX_COMPILER compiler)
SET(CMAKE_CXX_COMPILER ${compiler} CACHE STRING "C++ compiler" FORCE)
ENDMACRO(SET_CXX_COMPILER)
and my implementation:
SET_CXX_COMPILER("distcc mpicxx")
results in a build.cmake file with
distcc\ mpicxx ...
the problem is the backslash "\" before the blank. How can the be avoided?
Like this I cannot execute make.
2. why does the compiler not change at the build.cmake file by changing the
C++ compiler within the advanced options in ccmake? I can set the compiler
within ccmake e.g. to gcc, but I always get the "c++"-compiler at the build
file?
(of course only if I am not using my SET_CXX_COMPILER macro...).
Hoping for answers,
QuestAnn
More information about the CMake
mailing list