--- cuneiform-git.old/cuneiform/cuneiform_src/CMakeLists.txt +++ cuneiform-git/cuneiform/cuneiform_src/CMakeLists.txt @@ -62,5 +62,10 @@ if(MINGW) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -mwindows") endif() +# Libdl is needed only on Apple and Linux (that I know of). +if(NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + find_library(DL_LIB dl PATHS __META_SYSLIBDIR__) +endif() + add_subdirectory(Kern) add_subdirectory(cli)