瀏覽代碼

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 年之前
父節點
當前提交
96841612d1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)