mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
Linking to libdl correctly
https://stackoverflow.com/questions/1274529/building-project-involving-cmake-how-do-i-make-it-aware-of-libraries
This commit is contained in:
@@ -45,7 +45,7 @@ if (CIVETWEB_ENABLE_SLL AND NOT CIVETWEB_ENABLE_OPENSLL_DYNAMIC_LOADING)
|
|||||||
else()
|
else()
|
||||||
find_package(LibDl)
|
find_package(LibDl)
|
||||||
if (LIBDL_FOUND)
|
if (LIBDL_FOUND)
|
||||||
target_link_libraries(c-library LIBDL::LIBDL)
|
target_link_libraries(c-library -ldl)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
if (${CMAKE_VERSION} VERSION_GREATER 3.0.2 OR
|
|
||||||
${CMAKE_VERSION} VERSION_EQUAL 3.0.2)
|
|
||||||
cmake_policy(SET CMP0028 OLD)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Determine if we should print to the output
|
# Determine if we should print to the output
|
||||||
if (CIVETWEB_ENABLE_THIRD_PARTY_OUTPUT)
|
if (CIVETWEB_ENABLE_THIRD_PARTY_OUTPUT)
|
||||||
set(THIRD_PARTY_LOGGING 0)
|
set(THIRD_PARTY_LOGGING 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user