mirror of
https://github.com/znc/znc.git
synced 2026-08-10 02:43:05 +02:00
Merge pull request #1883 from DarthGandalf/applecctz
Maybe fix build on macos
This commit is contained in:
+4
-18
@@ -14,11 +14,6 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 3.2)
|
||||
# Since 3.2 it does this automatically from BYPRODUCTS
|
||||
set_source_files_properties("versionc.cpp" PROPERTIES GENERATED true)
|
||||
endif()
|
||||
|
||||
set(znc_cpp "ZNCString.cpp" "znc.cpp" "IRCNetwork.cpp" "Translation.cpp"
|
||||
"IRCSock.cpp" "Client.cpp" "Chan.cpp" "Nick.cpp" "Server.cpp"
|
||||
"Modules.cpp" "MD5.cpp" "Buffer.cpp" "Utils.cpp" "FileUtils.cpp"
|
||||
@@ -66,25 +61,16 @@ set(znc_include_dirs
|
||||
"$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_FULL_INCLUDEDIR}>")
|
||||
target_link_libraries(znclib PRIVATE ${CMAKE_DL_LIBS} Threads::Threads)
|
||||
if(OPENSSL_FOUND)
|
||||
target_link_libraries(znclib PUBLIC ${OPENSSL_LIBRARIES})
|
||||
list(APPEND znc_include_dirs "${OPENSSL_INCLUDE_DIR}")
|
||||
endif()
|
||||
if(ZLIB_FOUND)
|
||||
target_link_libraries(znclib PRIVATE ${ZLIB_LIBRARIES})
|
||||
list(APPEND znc_include_dirs ${ZLIB_INCLUDE_DIRS})
|
||||
endif()
|
||||
if(ICU_FOUND)
|
||||
target_link_libraries(znclib PUBLIC ${ICU_LDFLAGS})
|
||||
list(APPEND znc_include_dirs ${ICU_INCLUDE_DIRS})
|
||||
target_link_libraries(znclib PRIVATE ZLIB::ZLIB)
|
||||
endif()
|
||||
if(Boost_FOUND)
|
||||
target_link_libraries(znclib PRIVATE ${Boost_LIBRARIES})
|
||||
list(APPEND znc_include_dirs ${Boost_INCLUDE_DIRS})
|
||||
target_link_libraries(znclib PRIVATE Boost::locale)
|
||||
endif()
|
||||
if(ZNC_HAVE_ARGON)
|
||||
target_link_libraries(znclib PRIVATE PkgConfig::ARGON)
|
||||
endif()
|
||||
target_link_libraries(znclib PUBLIC ${zncpubdeps})
|
||||
target_link_libraries(znclib PRIVATE cctz::cctz)
|
||||
target_include_directories(znc PUBLIC ${znc_include_dirs})
|
||||
target_include_directories(znclib PUBLIC ${znc_include_dirs})
|
||||
@@ -109,7 +95,7 @@ target_compile_features(znc PUBLIC ${required_cxx11_features})
|
||||
target_compile_features(znclib PUBLIC ${required_cxx11_features})
|
||||
|
||||
add_library(ZNC INTERFACE)
|
||||
target_link_libraries(ZNC INTERFACE ${znc_link})
|
||||
target_link_libraries(ZNC INTERFACE ${znc_link} ${zncpubdeps})
|
||||
target_compile_definitions(ZNC INTERFACE "znc_export_lib_EXPORTS")
|
||||
|
||||
if(HAVE_I18N)
|
||||
|
||||
Reference in New Issue
Block a user