--- 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()