diff --git a/cmake/targets/common.cmake b/cmake/targets/common.cmake index 41a12ea6..af1fdd45 100644 --- a/cmake/targets/common.cmake +++ b/cmake/targets/common.cmake @@ -29,4 +29,6 @@ set_target_properties(sunshine PROPERTIES CXX_STANDARD 17 foreach(flag IN LISTS SUNSHINE_COMPILE_OPTIONS) list(APPEND SUNSHINE_COMPILE_OPTIONS_CUDA "$<$:--compiler-options=${flag}>") -endforeach() \ No newline at end of file +endforeach() + +target_compile_options(sunshine PRIVATE $<$:${SUNSHINE_COMPILE_OPTIONS}>;$<$:${SUNSHINE_COMPILE_OPTIONS_CUDA};-std=c++17>) # cmake-lint: disable=C0301 \ No newline at end of file