Skip to content

Commit 006389c

Browse files
committed
(KDL) set compile options by KDL_CFLAGS
1 parent be9a9f8 commit 006389c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

orocos_kdl/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ ELSE ( NOT CMAKE_BUILD_TYPE )
4747
MESSAGE( STATUS "Build type set to '${CMAKE_BUILD_TYPE}' by user." )
4848
ENDIF ( NOT CMAKE_BUILD_TYPE )
4949

50-
add_compile_options(-Wall -Werror=all)
51-
add_compile_options(-Wextra -Werror=extra)
52-
53-
SET( KDL_CFLAGS "")
50+
add_compile_options()
51+
add_compile_options()
52+
53+
IF(MSVC)
54+
SET( KDL_CFLAGS "/W4 /WX" )
55+
ELSE(MSVC)
56+
SET( KDL_CFLAGS "-Wall -Werror=all -Wextra -Werror=extra" )
57+
ENDIF(MSVC)
5458

5559
find_package(Eigen3 QUIET)
5660
if(NOT EIGEN3_FOUND)

0 commit comments

Comments
 (0)