mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 19:09:01 +08:00
252ba6a04f
* [libmikmod]fix missing dll bug. * [libmikmod]1.Set macro to replace fixed library suffixes to support multiple platforms 2.Copying dynamic library files is disabled when building static libraries * [libmikmod]1. change vcpkg_apply_patches to vcpkg_extract_source_archive_ex. 2.delete commented code. * [libmikmod] remove extra 'set'
30 lines
741 B
Diff
30 lines
741 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 53a174e..b4d31d3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -856,11 +856,19 @@ INSTALL(
|
|
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
|
|
)
|
|
|
|
-INSTALL(
|
|
- FILES "${CMAKE_BINARY_DIR}/libmikmod-config"
|
|
- PERMISSIONS GROUP_EXECUTE GROUP_READ OWNER_EXECUTE OWNER_READ OWNER_WRITE WORLD_EXECUTE WORLD_READ
|
|
- DESTINATION "bin"
|
|
-)
|
|
+IF(WIN32)
|
|
+ SET(LIB_SUFFIX_USED ".dll")
|
|
+ELSEIF(UNIX)
|
|
+ SET(LIB_SUFFIX_USED ".so")
|
|
+ELSEIF(APPLE)
|
|
+ SET(LIB_SUFFIX_USED ".dylib")
|
|
+ELSE()
|
|
+ SET(LIB_SUFFIX_USED)
|
|
+ENDIF()
|
|
+
|
|
+IF(NOT ENABLE_STATIC)
|
|
+ INSTALL(FILES "${CMAKE_BINARY_DIR}/mikmod${LIB_SUFFIX_USED}" DESTINATION "bin")
|
|
+ENDIF()
|
|
|
|
INSTALL(
|
|
FILES
|