diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a0e9db5..ea0f86f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # TODO Remove this deprecated policy switch once we're on cmake 3.4 or later -cmake_policy(SET CMP0065 OLD) +# cmake_policy(SET CMP0065 OLD) # TODO Perf test: # - try if setting CRYPTOPP_NATIVE_ARCH=ON and adding -march=native to the compile commands for cryfs source files makes a difference diff --git a/cmake-utils/utils.cmake b/cmake-utils/utils.cmake index 78d74159..0a9fa5fb 100644 --- a/cmake-utils/utils.cmake +++ b/cmake-utils/utils.cmake @@ -20,6 +20,9 @@ function(target_activate_cpp14 TARGET) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE) target_compile_options(${TARGET} PUBLIC -stdlib=libc++) endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE) + + # We need ENABLE_EXPORTS so that boost::stacktrace works correctly + set_property(TARGET ${TARGET} PROPERTY ENABLE_EXPORTS 1) endfunction(target_activate_cpp14) # Find clang-tidy executable (for use in target_enable_style_warnings)