Ver Fonte

BUG: fix order of link line for creating shared libraries

Bill Hoffman há 23 anos atrás
pai
commit
e0671aba94
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Modules/Platform/Windows-bcc32.cmake

+ 2 - 2
Modules/Platform/Windows-bcc32.cmake

@@ -3,7 +3,7 @@ SET(CMAKE_LINK_LIBRARY_FLAG "")
 
 # create a shared C++ library
 SET(CMAKE_CXX_CREATE_SHARED_LIBRARY 
- "<CMAKE_CXX_COMPILER>  @&&|\n-e<TARGET>  -tWD <OBJECTS> <LINK_LIBRARIES> <LINK_FLAGS>\n|"
+ "<CMAKE_CXX_COMPILER>  @&&|\n-e<TARGET>  -tWD <LINK_LIBRARIES> <LINK_FLAGS> <OBJECTS>\n|"
  "implib @&&|\n-w <TARGET_BASE>.lib <TARGET_BASE>.dll\n|"
 )
 
@@ -11,7 +11,7 @@ SET(CMAKE_CXX_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
 
 # create a C shared library
 SET(CMAKE_C_CREATE_SHARED_LIBRARY 
- "<CMAKE_CXX_COMPILER> @&&|\n-e<TARGET> -tWD  <OBJECTS> <LINK_LIBRARIES> <LINK_FLAGS>\n|"
+ "<CMAKE_C_COMPILER> @&&|\n-e<TARGET> -tWD <LINK_LIBRARIES> <LINK_FLAGS>  <OBJECTS>\n|"
  "implib @&&|\n-w <TARGET_BASE>.lib <TARGET_BASE>.dll\n|"
 )