[CMake] newbie: find_package Boost ceases to work when mixed with CLang CMAKE_TOOLCHAIN_FILE (on Ubuntu 64bit Quantal 12.10)
Miller, Frank
FMiller at sjm.com
Wed Jan 2 09:57:10 EST 2013
> Is there any better way to use clang with cmake on Ubuntu ?
I do it like this
cmake -DCMAKE_CXX_COMPILER=/path/to/clang++ -DCMAKE_C_COMPILER=/path/to/clang /path/to/source
But you can also hard code the path to the compiler in your CMakeLists.txt.
http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools
Frank
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.
More information about the CMake
mailing list