Skip to content

Commit

Permalink
(KDL) set compile options by KDL_CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Dec 25, 2022
1 parent be9a9f8 commit 006389c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions orocos_kdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ ELSE ( NOT CMAKE_BUILD_TYPE )
MESSAGE( STATUS "Build type set to '${CMAKE_BUILD_TYPE}' by user." )
ENDIF ( NOT CMAKE_BUILD_TYPE )

add_compile_options(-Wall -Werror=all)
add_compile_options(-Wextra -Werror=extra)

SET( KDL_CFLAGS "")
add_compile_options()
add_compile_options()

IF(MSVC)
SET( KDL_CFLAGS "/W4 /WX" )
ELSE(MSVC)
SET( KDL_CFLAGS "-Wall -Werror=all -Wextra -Werror=extra" )
ENDIF(MSVC)

find_package(Eigen3 QUIET)
if(NOT EIGEN3_FOUND)
Expand Down

0 comments on commit 006389c

Please sign in to comment.