@@ -242,7 +242,7 @@ function(flamegpu_configure_rc_file)
242242 endif ()
243243endfunction ()
244244
245- function (flamegpu_target_cxx17 )
245+ function (flamegpu_target_cxx20 )
246246 cmake_parse_arguments (
247247 FTC
248248 ""
@@ -255,8 +255,8 @@ function(flamegpu_target_cxx17)
255255 elseif (NOT TARGET ${FTC_TARGET} )
256256 message (FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} : TARGET '${FTC_TARGET} ' is not a valid target" )
257257 endif ()
258- target_compile_features (${FTC_TARGET} PUBLIC cxx_std_17 )
259- target_compile_features (${FTC_TARGET} PUBLIC cuda_std_17 )
258+ target_compile_features (${FTC_TARGET} PUBLIC cxx_std_20 )
259+ target_compile_features (${FTC_TARGET} PUBLIC cuda_std_20 )
260260 set_property (TARGET ${FTC_TARGET} PROPERTY CXX_EXTENSIONS OFF )
261261 set_property (TARGET ${FTC_TARGET} PROPERTY CUDA_EXTENSIONS OFF )
262262 set_property (TARGET ${FTC_TARGET} PROPERTY CXX_STANDARD_REQUIRED ON )
@@ -375,8 +375,8 @@ function(flamegpu_add_executable NAME SRC FLAMEGPU_ROOT PROJECT_ROOT IS_EXAMPLE)
375375 flamegpu_enable_compiler_warnings(TARGET "${NAME} " )
376376 # Apply common compiler settings
377377 flamegpu_common_compiler_settings(TARGET "${NAME} " )
378- # Set C++17 using modern CMake options
379- flamegpu_target_cxx17 (TARGET "${NAME} " )
378+ # Set C++20 using modern CMake options
379+ flamegpu_target_cxx20 (TARGET "${NAME} " )
380380
381381 # Enable RDC for the target
382382 set_property (TARGET ${NAME} PROPERTY CUDA_SEPARABLE_COMPILATION ON )
@@ -430,8 +430,8 @@ function(flamegpu_add_library NAME SRC FLAMEGPU_ROOT PROJECT_ROOT IS_EXAMPLE)
430430 flamegpu_enable_compiler_warnings(TARGET "${NAME} " )
431431 # Apply common compiler settings
432432 flamegpu_common_compiler_settings(TARGET "${NAME} " )
433- # Set C++17 using modern CMake options
434- flamegpu_target_cxx17 (TARGET "${NAME} " )
433+ # Set C++20 using modern CMake options
434+ flamegpu_target_cxx20 (TARGET "${NAME} " )
435435
436436 # Enable RDC for the target
437437 set_property (TARGET ${NAME} PROPERTY CUDA_SEPARABLE_COMPILATION ON )
0 commit comments