[CMake] Separate CXXFLAGS and LDFLAGS

2010-10-01 Thread Marek Szuba
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

Re: [CMake] Separate CXXFLAGS and LDFLAGS

2010-10-01 Thread Michael Hertling
On 10/01/2010 03:55 PM, Marek Szuba wrote: 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