MantisBT - CMake
View Issue Details
0011840CMakeCMakepublic2011-02-10 22:572011-06-17 18:26
Daniel Richard G. 
Brad King 
normalminoralways
closedfixed 
CMake 2.8.3 
CMake 2.8.5CMake 2.8.5 
0011840: CMAKE_EXE_LINKER_FLAGS assignment in CMakeCommonLanguageInclude.cmake needs quotes
In CMakeCommonLanguageInclude.cmake, there is this cache variable assignment:

    SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
         CACHE STRING "Flags used by the linker.")

I am using the NMake generator, with LDFLAGS set in the environment. In a build.make file, I am seeing a link command line containing the following excerpt:

    [...]000 /INCREMENTAL:NO /machine:x64;/FIXED:NO /INCREMEN[...]

"/FIXED:NO" is the first thing in my LDFLAGS setting. Double-quotes are needed when setting CMAKE_EXE_LINKER_FLAGS.
No tags attached.
Issue History
2011-02-10 22:57Daniel Richard G.New Issue
2011-02-11 08:53Brad KingAssigned To => Brad King
2011-02-11 08:53Brad KingStatusnew => assigned
2011-02-11 09:03Brad KingNote Added: 0025391
2011-02-11 09:03Brad KingStatusassigned => closed
2011-02-11 09:03Brad KingResolutionopen => fixed
2011-02-16 11:45David ColeTarget Version => CMake 2.8.5
2011-06-17 18:26David ColeFixed in Version => CMake 2.8.5

Notes
(0025391)
Brad King   
2011-02-11 09:03   
Fixed, thanks:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3b775168 [^]