Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 329 Lines • ▼ Show 20 Lines | |||||
if(NOT HAVE_LARGE_FILE_SUPPORT) | if(NOT HAVE_LARGE_FILE_SUPPORT) | ||||
add_compiler_flags(-D_FILE_OFFSET_BITS=64) | add_compiler_flags(-D_FILE_OFFSET_BITS=64) | ||||
add_linker_flags(-Wl,--large-address-aware) | add_linker_flags(-Wl,--large-address-aware) | ||||
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_USE_STATIC_RUNTIME ON) | |||||
set(Boost_THREADAPI win32) | set(Boost_THREADAPI win32) | ||||
find_package(SHLWAPI REQUIRED) | find_package(SHLWAPI REQUIRED) | ||||
# We cannot use the imported target here, because cmake will introduce an | # We cannot use the imported target here, because cmake will introduce an | ||||
# -isystem compilation directive and cause the build to fail with MinGw. | # -isystem compilation directive and cause the build to fail with MinGw. | ||||
# This comes from a couple cmake bugs: | # This comes from a couple cmake bugs: | ||||
# - https://gitlab.kitware.com/cmake/cmake/issues/16291 | # - https://gitlab.kitware.com/cmake/cmake/issues/16291 | ||||
# - https://gitlab.kitware.com/cmake/cmake/issues/19095 | # - https://gitlab.kitware.com/cmake/cmake/issues/19095 | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |