Skip to content

Commit

Permalink
libpolyclipping: Install Windows import library
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Mar 30, 2020
1 parent c70ede1 commit bd37866
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libpolyclipping-6.4.2-3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ superbuild_package(
"${CMAKE_COMMAND}"
-Dpackage=libpolyclipping-patches-${patch_version}
-P "${APPLY_PATCHES_SERIES}"
# On Windows, shared libraries count as RUNTIME, not LIBRARY.
# On Windows, import libraries count as ARCHIVE
COMMAND
sed -i -e [[ s/LIBRARY DESTINATION/RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}\/bin" LIBRARY DESTINATION/ ]] cpp/CMakeLists.txt
sed -i -e [[ s/polyclipping LIBRARY DESTINATION/polyclipping ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION/ ]] cpp/CMakeLists.txt
# On Windows, shared libraries count as RUNTIME.
COMMAND
sed -i -e [[ s/polyclipping ARCHIVE DESTINATION/polyclipping RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}\/bin" ARCHIVE DESTINATION/ ]] cpp/CMakeLists.txt
)

# Build from a copy of the cpp directory, using ExternalPackage's CMake support
Expand Down

0 comments on commit bd37866

Please sign in to comment.