Sfoglia il codice sorgente

fix Core linking: FreeBSD does not have a libdl

The same functionality that is in linux's libdl is provided in FreeBSD's libc
Heather 9 anni fa
parent
commit
96841612d1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Libs/Core/CMakeLists.txt

+ 1 - 1
Libs/Core/CMakeLists.txt

@@ -142,7 +142,7 @@ ctkMacroBuildLib(
   )
 
 # Needed for ctkBackTrace
-if(UNIX)
+if(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
   target_link_libraries(${PROJECT_NAME} dl)
 elseif(WIN32 AND NOT MINGW)
   target_link_libraries(${PROJECT_NAME} dbghelp)