Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
# long int. See which one is present here. | # long int. See which one is present here. | ||||
include(CheckPrototypeDefinition) | include(CheckPrototypeDefinition) | ||||
set(CMAKE_REQUIRED_DEFINITIONS -D_FORTIFY_SOURCE=2) | set(CMAKE_REQUIRED_DEFINITIONS -D_FORTIFY_SOURCE=2) | ||||
# Without some optimization the compiler won't detect the prototype conflict | # Without some optimization the compiler won't detect the prototype conflict | ||||
# and always succeed to build. | # and always succeed to build. | ||||
set(CMAKE_REQUIRED_FLAGS -O2) | set(CMAKE_REQUIRED_FLAGS -O2) | ||||
check_prototype_definition( | |||||
__fdelt_warn | |||||
"extern long unsigned int __fdelt_warn(long unsigned int a)" | |||||
"0" | |||||
"sys/select.h" | |||||
FDELT_PROTOTYPE_LONG_UNSIGNED_INT | |||||
) | |||||
if(FDELT_PROTOTYPE_LONG_UNSIGNED_INT) | |||||
set(FDELT_TYPE "long unsigned int") | |||||
else() | |||||
set(FDELT_TYPE "long int") | |||||
endif() | |||||
# Activate wallet | # Activate wallet | ||||
set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | ||||
# Activate ZeroMQ | # Activate ZeroMQ | ||||
set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | ||||
# Try to find libqrencode | # Try to find libqrencode | ||||
# Only used in the wallet GUI | # Only used in the wallet GUI | ||||
Show All 19 Lines |