You can - but do not need to - set the CC and CXX environment variables in order to get the compiler settings you want with cmake. Cmake creates a CMakeCache.txt file and then you can tailor it to your needs by editing the cache file. This is exactly how the cmake build system works.
I have verified that the compiler commands that I want to use actually are being used by using gmake's VERBOSE=1 switch - so a misconfiguration of cmake is most certainly not the problem here.
|