瀏覽代碼

BUG: fix order of link line for creating shared libraries

Bill Hoffman 23 年之前
父節點
當前提交
e0671aba94
共有 1 個文件被更改,包括 2 次插入2 次删除
  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|"
 )