[Cmake] Trouble with missing linker flags

Mathews, Rob rmathews at envoyww . com
Wed, 24 Sep 2003 10:28:38 -0400


I'm noticing that when I specify CMAKE_EXE_LINKER_FLAGS like this: 

SET(CMAKE_EXE_LINKER_FLAGS ${LINK_FLAGS} CACHE STRING "Flags used by the
linker during the creation of exe's." FORCE)
SET(CMAKE_SHARED_LINKER_FLAGS ${LINK_FLAGS} CACHE STRING "Flags used by the
linker during the creation of dll's." FORCE)

that they are used for regular executables specified like this: 

ADD_EXECUTABLE(foo  ${SRC})

but for executables with the "WIN32" option, the linker flags are missing. 

ie something like this is missing all the linker options: 
 
ADD_EXECUTABLE(bar WIN32  ${SRC})

If you look in the project, "AdditionalOptions" for the VCLinkerTool is
empty. 

The target is .NET 2003, cmake is version 1.8.1

Any thoughts? 

Rob.