Cleanup cmake CMP0065
This commit is contained in:
parent
b8a20ee0b0
commit
ac15f42978
@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||||
|
|
||||||
# TODO Remove this deprecated policy switch once we're on cmake 3.4 or later
|
# 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:
|
# 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
|
# - try if setting CRYPTOPP_NATIVE_ARCH=ON and adding -march=native to the compile commands for cryfs source files makes a difference
|
||||||
|
@ -20,6 +20,9 @@ function(target_activate_cpp14 TARGET)
|
|||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE)
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE)
|
||||||
target_compile_options(${TARGET} PUBLIC -stdlib=libc++)
|
target_compile_options(${TARGET} PUBLIC -stdlib=libc++)
|
||||||
endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND APPLE)
|
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)
|
endfunction(target_activate_cpp14)
|
||||||
|
|
||||||
# Find clang-tidy executable (for use in target_enable_style_warnings)
|
# Find clang-tidy executable (for use in target_enable_style_warnings)
|
||||||
|
Loading…
Reference in New Issue
Block a user