diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index fdfd565a2..ae859cf38 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -61,7 +61,7 @@ if(NOT COMMAND flamegpu_set_high_warning_level) target_compile_options(${SHWL_TARGET} PRIVATE "$<$:SHELL:-Xcompiler -Wall>") target_compile_options(${SHWL_TARGET} PRIVATE "$<$:-Wall>") # Sign compare is not valid with older nvhpc's - if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "21.11") + if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "21.11")) target_compile_options(${SHWL_TARGET} PRIVATE "$<$:SHELL:-Xcompiler -Wsign-compare>") target_compile_options(${SHWL_TARGET} PRIVATE "$<$:-Wsign-compare>") endif()