Skip to content

Commit

Permalink
Zinc package: we need our .dll and .lib files to be in the same place…
Browse files Browse the repository at this point in the history
… on Windows (#1306).
  • Loading branch information
agarny committed May 25, 2017
1 parent 91b53ab commit 17dcb00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/plugins/thirdParty/Zinc/CMakeLists.txt
Expand Up @@ -112,6 +112,17 @@ ELSE()
<INSTALL_DIR>/lib/${IMPORT_LIBRARY}
)

# Do some post-processing that is specific to each platform

IF(WIN32)
# We want both our shared and import libraries to be in the same place

ExternalProject_Add_Step(${PACKAGE_BUILD} CopyDLL
COMMAND ${CMAKE_COMMAND} -E copy bin/${SHARED_LIBRARY} lib
WORKING_DIRECTORY ${FULL_LOCAL_EXTERNAL_PACKAGE_DIR}
DEPENDEES install)
ENDIF()

# Package our external project

CREATE_PACKAGE_FILE(${PACKAGE_NAME} ${PACKAGE_VERSION}
Expand Down

0 comments on commit 17dcb00

Please sign in to comment.