[CMake] CMake passes compiler flags to linker

Sean McBride sean at rogue-research.com
Tue Oct 2 14:12:25 EDT 2012


On Tue, 2 Oct 2012 22:35:31 +0530, Arindam Mukherjee said:

>I have used CMAKE_CXX_FLAGS and CMAKE_EXE_LINKER_FLAGS variables to
>pass custom options to the C++ compiler and linker. However, cmake
>seems to be passing the flags meant only for the compiler to the
>linker too.

That's a pet peeve of mine too.  You might want to add your scenario here:

<http://public.kitware.com/Bug/view.php?id=12652>

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list