[CMake] A way to set default compiler, etc.?
Sergei Nikulov
sergey.nikulov at gmail.com
Thu Sep 20 09:15:21 EDT 2012
2012/9/20 Dave Abrahams <dave at boostpro.com>:
>
> When I invoke cmake for the first time in a project, I normally use
>
> -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
>
> I'm tired of typing that every time I blow away my CMakeCache.txt. Is
> there a place I can register these preferences so I don't have to?
>
How about?
alias cmake="cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
--
Best Regards,
Sergey Nikulov
More information about the CMake
mailing list