in cmake, SET() will treat white spaces as separator like ;, in my case , ${EIGEN3_INCLUDE_DIR} is C:/Program Files/Eigen3/include/eigen3 which has white space inside.
As a result, when KDL_CFLAGS is used later at COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD} ${KDL_CFLAGS}", the result of generated VS project file is like:
Hi,
I found a potential bug of the cmake file https://github.com/orocos/orocos_kinematics_dynamics/blob/master/orocos_kdl/CMakeLists.txt#L57
in cmake,
SET()
will treat white spaces as separator like;
, in my case ,${EIGEN3_INCLUDE_DIR}
isC:/Program Files/Eigen3/include/eigen3
which has white space inside.As a result, when
KDL_CFLAGS
is used later atCOMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD} ${KDL_CFLAGS}"
, the result of generated VS project file is like:You can see the path is divided into 2 elements.
As a workaround, I changed the code to
and it's fixed.