Skip to content

Commit

Permalink
enable pedantic warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Nov 24, 2023
1 parent a7f78fc commit c850efe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.10)

project(ROSProjectManager VERSION 12.0)

if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif()

Expand Down

0 comments on commit c850efe

Please sign in to comment.