# HG changeset patch # User Sebastien Jodogne # Date 1435913138 -7200 # Node ID 56a4d23ab688d7802b644b750ddba0b122621e4b # Parent 61ffefbc1632f4e068e6c096454b58edd3e998f5 fid diff -r 61ffefbc1632 -r 56a4d23ab688 Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Fri Jun 26 16:41:39 2015 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Fri Jul 03 10:45:38 2015 +0200 @@ -19,7 +19,9 @@ if (STATIC_BUILD OR NOT USE_SYSTEM_GDCM) # If using gcc, build GDCM with the "-fPIC" argument to allow its # embedding into the shared library containing the Orthanc plugin - if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") set(Flags -DCMAKE_CXX_FLAGS:STRING=-fPIC -DCMAKE_C_FLAGS:STRING=-fPIC) else() set(Flags