[CMake] Separate CXXFLAGS and LDFLAGS

Marek Szuba marecki at gmail.com
Fri Oct 1 09:55:09 EDT 2010


Hello,

How can one define C++ compiler flags which are used ONLY at compile time?
Traditional LDFLAGS appear to clearly map to CMAKE_xxx_LINKER_FLAGS, however
CMAKE_CXX_FLAGS work differently from what I would like - they are passed to
both the compiler and the linker.

Cheers,
-- 
MS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101001/4026f36d/attachment.htm>


More information about the CMake mailing list