diff options
Diffstat (limited to 'extras/libmemif/src/CMakeLists.txt')
-rw-r--r-- | extras/libmemif/src/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/libmemif/src/CMakeLists.txt b/extras/libmemif/src/CMakeLists.txt index aced550ff5d..ddb8a52f82b 100644 --- a/extras/libmemif/src/CMakeLists.txt +++ b/extras/libmemif/src/CMakeLists.txt @@ -34,6 +34,13 @@ include_directories(${HEADERS_DIR}) add_library(memif SHARED ${MEMIF_SOURCES}) target_link_libraries(memif ${CMAKE_THREAD_LIBS_INIT}) + +find_library(LIB_BSD bsd) +if(LIB_BSD) + add_compile_definitions(HAS_LIB_BSD) + target_link_libraries(memif ${LIB_BSD}) +endif() + foreach(file ${MEMIF_HEADERS}) get_filename_component(dir ${file} DIRECTORY) install( |