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)