Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
96841612d1
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)