# HG changeset patch # User Sebastien Jodogne # Date 1435913165 -7200 # Node ID caa0bf9511bc174e6d22d1c2a093752b9ecf7e62 # Parent 56a4d23ab688d7802b644b750ddba0b122621e4b# Parent 1796c2dce76ef1bed4b753ffddbb941019339f11 merge diff -r 1796c2dce76e -r caa0bf9511bc Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Tue Jun 30 11:58:04 2015 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Fri Jul 03 10:46:05 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