orthanc/orthanc-1.4.2-lib64.patch

37 lines
1000 B
Diff
Raw Normal View History

--- CMakeLists.txt.orig 2018-09-20 17:32:11.538015844 +0200
+++ CMakeLists.txt 2018-09-20 17:33:08.413928827 +0200
@@ -361,11 +361,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()
@@ -406,11 +406,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()