# HG changeset patch # User Sebastien Jodogne # Date 1435913151 -7200 # Node ID fec65ef2c7e94e9fba2259afebf1cf7331e747c9 # Parent 64ce5bb00a563fa18e7bca1446e735ac67adf06e fix diff -r 64ce5bb00a56 -r fec65ef2c7e9 Resources/CMake/GdcmConfiguration.cmake --- a/Resources/CMake/GdcmConfiguration.cmake Fri Jul 03 10:04:15 2015 +0200 +++ b/Resources/CMake/GdcmConfiguration.cmake Fri Jul 03 10:45:51 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