--- CMakeLists.txt.orig 2017-08-25 12:25:26.498475323 +0200
+++ CMakeLists.txt 2017-08-25 12:26:21.083141505 +0200
@@ -568,11 +568,11 @@
SOVERSION ${ORTHANC_VERSION}
)
- install(
- TARGETS ServeFolders
- RUNTIME DESTINATION lib # Destination for Windows
- LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
- )
+ if (${CMAKE_SIZEOF_VOID_P} EQUAL 4)
+ install(TARGETS ServeFolders LIBRARY DESTINATION lib)
+ else()
+ install(TARGETS ServeFolders LIBRARY DESTINATION lib64)
+ endif()
endif()
@@ -612,11 +612,11 @@
SOVERSION ${ORTHANC_VERSION}
)
- install(
- TARGETS ModalityWorklists
- RUNTIME DESTINATION lib # Destination for Windows
- LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
- )
+ if (${CMAKE_SIZEOF_VOID_P} EQUAL 4)
+ install(TARGETS ModalityWorklists LIBRARY DESTINATION lib)
+ else()
+ install(TARGETS ModalityWorklists LIBRARY DESTINATION lib64)
+ endif()
endif()