Skip to content

Commit d769f59

Browse files
authored
Use pedantic for non MSVC builds (BehaviorTree#289)
1 parent 0bff68a commit d769f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
if(MSVC)
1313
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
14+
else()
15+
add_definitions(-Wpedantic)
1416
endif()
1517

16-
add_definitions(-Wpedantic)
17-
1818
#---- Include boost to add coroutines ----
1919
find_package(Boost COMPONENTS coroutine QUIET)
2020

0 commit comments

Comments
 (0)