updated build system
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
if(PROJECT_ENABLE_BACKWARD_CPP AND PROJECT_BUILD)
|
||||
add_definitions(-DPROJECT_ENABLE_BACKWARD_CPP)
|
||||
|
||||
if(PROJECT_IS_MINGW)
|
||||
link_libraries(msvcr90)
|
||||
|
||||
add_definitions(-DPROJECT_ENABLE_BACKWARD_CPP)
|
||||
else()
|
||||
link_libraries(bfd)
|
||||
add_definitions(-DBACKWARD_HAS_BFD)
|
||||
|
@ -1,8 +1,6 @@
|
||||
set(Boost_USE_STATIC_LIBS ${PROJECT_STATIC_LINK})
|
||||
|
||||
if(PROJECT_ENABLE_BOOST)
|
||||
add_definitions(-DPROJECT_ENABLE_BOOST)
|
||||
|
||||
if(PROJECT_ENABLE_LIBBITCOIN_SYSTEM)
|
||||
set(BOOST_MAJOR_VERSION ${BOOST2_MAJOR_VERSION})
|
||||
set(BOOST_MINOR_VERSION ${BOOST2_MINOR_VERSION})
|
||||
@ -40,6 +38,8 @@ if(PROJECT_ENABLE_BOOST)
|
||||
wserialization
|
||||
)
|
||||
|
||||
add_definitions(-DPROJECT_ENABLE_BOOST)
|
||||
|
||||
include_directories(BEFORE SYSTEM
|
||||
${Boost_INCLUDE_DIRS}
|
||||
)
|
||||
@ -107,5 +107,7 @@ if(PROJECT_ENABLE_BOOST)
|
||||
)
|
||||
|
||||
list(APPEND PROJECT_DEPENDENCIES boost_project)
|
||||
|
||||
add_dependencies(boost_project openssl_project)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -1,15 +1,10 @@
|
||||
if(PROJECT_ENABLE_CPP_HTTPLIB)
|
||||
if(PROJECT_BUILD)
|
||||
if(PROJECT_ENABLE_OPENSSL)
|
||||
add_definitions(
|
||||
-DCPPHTTPLIB_OPENSSL_SUPPORT
|
||||
)
|
||||
endif()
|
||||
|
||||
add_definitions(
|
||||
-DPROJECT_ENABLE_CPP_HTTPLIB
|
||||
-DCPPHTTPLIB_OPENSSL_SUPPORT
|
||||
-DCPPHTTPLIB_TCP_NODELAY=true
|
||||
-DCPPHTTPLIB_ZLIB_SUPPORT
|
||||
-DPROJECT_ENABLE_CPP_HTTPLIB
|
||||
)
|
||||
elseif(NOT PROJECT_IS_MINGW OR CMAKE_HOST_WIN32)
|
||||
ExternalProject_Add(cpphttplib_project
|
||||
@ -29,10 +24,9 @@ if(PROJECT_ENABLE_CPP_HTTPLIB)
|
||||
|
||||
list(APPEND PROJECT_DEPENDENCIES cpphttplib_project)
|
||||
|
||||
add_dependencies(cpphttplib_project curl_project)
|
||||
|
||||
if(PROJECT_ENABLE_OPENSSL)
|
||||
add_dependencies(cpphttplib_project openssl_project)
|
||||
endif()
|
||||
add_dependencies(cpphttplib_project
|
||||
curl_project
|
||||
openssl_project
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -48,8 +48,6 @@ if(PROJECT_ENABLE_CURL)
|
||||
|
||||
list(APPEND PROJECT_DEPENDENCIES curl_project)
|
||||
|
||||
if(PROJECT_ENABLE_OPENSSL)
|
||||
add_dependencies(curl_project openssl_project)
|
||||
endif()
|
||||
add_dependencies(curl_project openssl_project)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -1,6 +1,7 @@
|
||||
if(PROJECT_ENABLE_FUSE AND NOT PROJECT_IS_MINGW)
|
||||
if(PROJECT_BUILD)
|
||||
add_definitions(-DPROJECT_ENABLE_FUSE)
|
||||
|
||||
include_directories(BEFORE SYSTEM ${PROJECT_FUSE_INCLUDE_DIRS})
|
||||
|
||||
if(PROJECT_FUSE STREQUAL "fuse3")
|
||||
@ -18,11 +19,6 @@ if(PROJECT_ENABLE_FUSE AND NOT PROJECT_IS_MINGW)
|
||||
link_libraries(fuse)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_include_files(sys/xattr.h HAS_SETXATTR)
|
||||
if(HAS_SETXATTR)
|
||||
add_definitions(-DHAS_SETXATTR)
|
||||
endif()
|
||||
else()
|
||||
pkg_check_modules(LIBFUSE3 fuse3>=3.0.0)
|
||||
if(LIBFUSE3_FOUND)
|
||||
|
Reference in New Issue
Block a user