diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-11-30 19:33:37 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-11-30 19:33:37 (GMT) |
commit | a7c293a99ef86eb4478b06128a4ade1b3a92570e (patch) | |
tree | 643e52dc00f889d44bb652320c24e4a2f8483eb3 /Templates | |
parent | 81d74f638a727b065e02044bd02c60c968cc7423 (diff) | |
download | CMake-a7c293a99ef86eb4478b06128a4ade1b3a92570e.zip CMake-a7c293a99ef86eb4478b06128a4ade1b3a92570e.tar.gz CMake-a7c293a99ef86eb4478b06128a4ade1b3a92570e.tar.bz2 |
Add linker flags for each build type
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/CMakeNMakeWindowsSystemConfig.cmake | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Templates/CMakeNMakeWindowsSystemConfig.cmake b/Templates/CMakeNMakeWindowsSystemConfig.cmake index 8975a2a..db62b32 100644 --- a/Templates/CMakeNMakeWindowsSystemConfig.cmake +++ b/Templates/CMakeNMakeWindowsSystemConfig.cmake @@ -30,9 +30,21 @@ SET (CMAKE_C_LIBPATH_FLAG "-LIBPATH:" CACHE STRING SET (CMAKE_LINKER link CACHE FILEPATH "Name of linker used.") -SET (CMAKE_LINKER_FLAGS "/nologo" CACHE STRING +SET (CMAKE_LINKER_FLAGS "/nologo /STACK:10000000 /machine:I386" CACHE STRING "Flags used by the linker.") +SET (CMAKE_LINKER_FLAGS_RELEASE "" CACHE STRING + "Flags used by the linker during release builds.") + +SET (CMAKE_LINKER_FLAGS_RELWITHDEBINFO "/debug /pdbtype:sept" CACHE STRING + "Flags used by the linker during Release with Debug Info builds.") + +SET (CMAKE_LINKER_FLAGS_MINSIZEREL "/stack:0x989680" CACHE STRING + "Flags used by the linker during release minsize builds.") + +SET (CMAKE_LINKER_FLAGS_DEBUG "/debug /pdbtype:sept" CACHE STRING + "Flags used by the linker during debug builds.") + SET (CMAKE_LINKER_SHARED_LIBRARY_FLAG "/dll" CACHE STRING "Flags used to create a shared library.") @@ -101,6 +113,10 @@ CMAKE_C_LINK_EXECUTABLE_FLAG CMAKE_C_LIBPATH_FLAG CMAKE_LINKER CMAKE_LINKER_FLAGS +CMAKE_LINKER_FLAGS_RELEASE +CMAKE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_LINKER_FLAGS_MINSIZEREL +CMAKE_LINKER_FLAGS_DEBUG CMAKE_LINKER_SHARED_LIBRARY_FLAG CMAKE_LINKER_STATIC_LIBRARY_FLAG CMAKE_LINKER_OUTPUT_FILE_FLAG |