File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
grid_map_cmake_helpers/cmake Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ macro(grid_map_package)
1616 set (CMAKE_CXX_STANDARD 17)
1717 endif ()
1818
19- if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
19+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
2020 add_compile_options (-Wall -Wextra -Wpedantic -Werror -Wdeprecated -fPIC)
2121 endif ()
2222
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ set(targets_list
201201)
202202
203203foreach (target ${targets_list} )
204- if (CMAKE_COMPILER_IS_GNUCXX )
204+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
205205 target_compile_options (${target} PRIVATE "SHELL:--param ggc-min-expand=1" )
206206 target_compile_options (${target} PRIVATE "SHELL:--param ggc-min-heapsize=32768" )
207207 endif ()
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ foreach(lib_name ${filter_libs})
8787 ${dependencies}
8888 )
8989
90- if (CMAKE_COMPILER_IS_GNUCXX )
90+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
9191 target_compile_options (${lib_name} PRIVATE "SHELL:--param ggc-min-expand=1" )
9292 target_compile_options (${lib_name} PRIVATE "SHELL:--param ggc-min-heapsize=32768" )
9393 endif ()
You can’t perform that action at this time.
0 commit comments