From a29a4d69d9d89abbf1ba1b4385c79b7275cc25ba Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 29 Sep 2020 16:53:54 -0500 Subject: [PATCH] cmake: mark Utilities as needing C++17 --- common/src/Utilities/CMakeLists.txt | 3 +++ common/src/x86emitter/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/common/src/Utilities/CMakeLists.txt b/common/src/Utilities/CMakeLists.txt index 98c39948f3..9db45cd8e2 100644 --- a/common/src/Utilities/CMakeLists.txt +++ b/common/src/Utilities/CMakeLists.txt @@ -118,6 +118,9 @@ set(UtilitiesFinalLibs add_pcsx2_lib(${Output} "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags}") add_pcsx2_lib(${Output}_NO_TLS "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags} -DPCSX2_THREAD_LOCAL=0") +target_compile_features(${Output} PUBLIC cxx_std_17) +target_compile_features(${Output}_NO_TLS PUBLIC cxx_std_17) + if(COMMAND target_precompile_headers) target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h) target_precompile_headers(${Output}_NO_TLS PRIVATE PrecompiledHeader.h) diff --git a/common/src/x86emitter/CMakeLists.txt b/common/src/x86emitter/CMakeLists.txt index 764af21874..6bbc355e5c 100644 --- a/common/src/x86emitter/CMakeLists.txt +++ b/common/src/x86emitter/CMakeLists.txt @@ -73,6 +73,7 @@ set(x86emitterFinalLibs ) add_pcsx2_lib(${Output} "${x86emitterFinalSources}" "${x86emitterFinalLibs}" "${x86emitterFinalFlags}") +target_compile_features(${Output} PUBLIC cxx_std_17) if(COMMAND target_precompile_headers) target_precompile_headers(${Output} PRIVATE PrecompiledHeader.h)