View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000992 | CMake | public | 2004-07-19 14:04 | 2004-07-19 16:56 | |||||
Reporter | Harold Vanderpool | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | low | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000992: SET_TARGET_PROPERTIES works for nmake but not for Visual Studio | ||||||||
Description | The command SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS "lflag" works correctly when generating nmake files. However no entry is made in foo.dsp when generating Visual Studio 6 files. In this case foo is an executable. An additional line of # ADD LINK32 lflag would be the expected behavior in the .dsp. The test code is: ADD_EXECUTABLE(foo WIN32 ${FOO_HDRS} ${FOO_SRCS}) TARGET_LINK_LIBRARIES(foo lib1 lib2 lib3) SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS " /nodefaultlib:\"nafxcw.lib\" /nodefaultlib:\"nafxcwd.lib\" ") | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0001280) Bill Hoffman (manager) 2004-07-19 16:56 |
The following worked with cmake 1.8.3 and 2.0.2: ADD_EXECUTABLE(foo WIN32 foo.cxx) SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS "crazy flags") In this example: SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS " /nodefaultlib:"nafxcw.lib" /nodefaultlib:"nafxcwd.lib" ") The quotes are mismatched. CMake does not support nested quotes so if do this, it works: SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS " /nodefaultlib:nafxcw.lib /nodefaultlib:nafxcwd.lib ") |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |