BUG: fix order of link line for creating shared libraries
This commit is contained in:
parent
ccb9b9cda8
commit
e0671aba94
|
@ -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|"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue