We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db6155 commit 67899dfCopy full SHA for 67899df
orocos_kdl/CMakeLists.txt
@@ -47,10 +47,14 @@ ELSE ( NOT CMAKE_BUILD_TYPE )
47
MESSAGE( STATUS "Build type set to '${CMAKE_BUILD_TYPE}' by user." )
48
ENDIF ( NOT CMAKE_BUILD_TYPE )
49
50
-add_compile_options(-Wall -Werror=all)
51
-add_compile_options(-Wextra -Werror=extra)
52
-
53
-SET( KDL_CFLAGS "")
+add_compile_options()
+
+IF(MSVC)
54
+ SET( KDL_CFLAGS "/W4 /WX" )
55
+ELSE(MSVC)
56
+ SET( KDL_CFLAGS "-Wall -Werror=all -Wextra -Werror=extra" )
57
+ENDIF(MSVC)
58
59
find_package(Eigen3 QUIET)
60
if(NOT EIGEN3_FOUND)
0 commit comments