[CMake] CFlags being passed to Linker (OS X, ICC)
Bill Hoffman
bill.hoffman at kitware.com
Fri Feb 1 16:30:10 EST 2008
Mike Jackson wrote:
> I am trying to develop an icpc module file for Darwin and one of the
> problems that seems to be cropping up is that cmake is passing compiler
> flags to the linker. Specifically I have entered some values for
> CMAKE_CXX_FLAGS and the compile is fine but the linker gets all messed up:
>
That is this stuff:
SET(CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
The -w gets removed by cmake. I think you can just remove these flags
in the Darwin-icpc.cmake file and you should be fine.
-Bill
More information about the CMake
mailing list