summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-df.cmake
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-09-27 09:45:25 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-01 21:06:38 (GMT)
commite31df0393973e2995f4543890df31c2b752a8ee1 (patch)
treed30a57669a93cbf99f12c42156ad91fea4ece7f3 /Modules/Platform/Windows-df.cmake
parent8d674e78449d4bcde669ee5c4a6c0809c0ee51a5 (diff)
downloadCMake-e31df0393973e2995f4543890df31c2b752a8ee1.zip
CMake-e31df0393973e2995f4543890df31c2b752a8ee1.tar.gz
CMake-e31df0393973e2995f4543890df31c2b752a8ee1.tar.bz2
Ninja: move <OBJECTS> in front of the first linker option
In the response file also linker options could be passed, and because <OBJECTS> is replaced by a response file, it is necessary that no compiler option follows <OBJECTS>.
Diffstat (limited to 'Modules/Platform/Windows-df.cmake')
-rw-r--r--Modules/Platform/Windows-df.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-df.cmake b/Modules/Platform/Windows-df.cmake
index 9a87be1..7e2ac9f 100644
--- a/Modules/Platform/Windows-df.cmake
+++ b/Modules/Platform/Windows-df.cmake
@@ -26,8 +26,9 @@ set(CMAKE_Fortran_COMPILE_OBJECT
set(CMAKE_COMPILE_RESOURCE "rc <FLAGS> /fo<OBJECT> <SOURCE>")
+set(CMAKE_${lang}_COMPILER_LINKER_OPTION_FLAG_EXECUTABLE "/link")
set(CMAKE_Fortran_LINK_EXECUTABLE
- "<CMAKE_Fortran_COMPILER> ${CMAKE_CL_NOLOGO} ${CMAKE_START_TEMP_FILE} <FLAGS> <OBJECTS> /exe:<TARGET> /link <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
+ "<CMAKE_Fortran_COMPILER> ${CMAKE_CL_NOLOGO} ${CMAKE_START_TEMP_FILE} <FLAGS> /exe:<TARGET> <OBJECTS> /link <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
set(CMAKE_CREATE_WIN32_EXE /winapp)
set(CMAKE_CREATE_CONSOLE_EXE )