File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ macro(nav2_package)
3636 endif ()
3737 endif ()
3838
39- if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
39+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
4040 add_compile_options (-Wall -Wextra -Wpedantic -Werror -Wdeprecated -fPIC -Wshadow -Wnull-dereference)
4141 add_compile_options ("$<$<COMPILE_LANGUAGE:CXX>:-Wnon-virtual-dtor>" )
4242 endif ()
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if(NOT CMAKE_CXX_STANDARD)
66 set (CMAKE_CXX_STANDARD 17)
77endif ()
88
9- if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
9+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
1010 add_compile_options (-Wall -Wextra -Wpedantic -Werror)
1111endif ()
1212
You can’t perform that action at this time.
0 commit comments