[cmake-developers] [CMake 0011840]: CMAKE_EXE_LINKER_FLAGS assignment in CMakeCommonLanguageInclude.cmake needs quotes

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 10 22:57:33 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11840 
====================================================================== 
Reported By:                Daniel R. Gomez
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11840
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-10 22:57 EST
Last Modified:              2011-02-10 22:57 EST
====================================================================== 
Summary:                    CMAKE_EXE_LINKER_FLAGS assignment in
CMakeCommonLanguageInclude.cmake needs quotes
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-10 22:57 Daniel R. GomezNew Issue                                    
======================================================================




More information about the cmake-developers mailing list