Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | if(ENABLE_GLIBC_BACK_COMPAT) | ||||
endif() | endif() | ||||
target_compile_definitions(util PRIVATE "-DFDELT_TYPE=${FDELT_TYPE}") | target_compile_definitions(util PRIVATE "-DFDELT_TYPE=${FDELT_TYPE}") | ||||
# Wrap some glibc functions with ours | # Wrap some glibc functions with ours | ||||
add_linker_flags(-Wl,--wrap=__divmoddi4) | add_linker_flags(-Wl,--wrap=__divmoddi4) | ||||
add_linker_flags(-Wl,--wrap=log2f) | add_linker_flags(-Wl,--wrap=log2f) | ||||
if(NOT OFF_T_EQUALS_OFF64_T) | |||||
add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | |||||
endif() | |||||
target_sources(util PRIVATE compat/glibc_compat.cpp) | target_sources(util PRIVATE compat/glibc_compat.cpp) | ||||
endif() | endif() | ||||
# Target specific configs | # Target specific configs | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
set(Boost_USE_STATIC_LIBS ON) | set(Boost_USE_STATIC_LIBS ON) | ||||
set(Boost_THREADAPI win32) | set(Boost_THREADAPI win32) | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |