Skip to content

Commit

Permalink
endorsing comments in robotology/community#81
Browse files Browse the repository at this point in the history
  • Loading branch information
pattacini committed Dec 7, 2015
1 parent c2ac53f commit 9b95cc8
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions libraries/cer_kinematics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include_directories(${PROJECT_SOURCE_DIR}/include
${YARP_INCLUDE_DIRS})

add_definitions(${IPOPT_DEFINITIONS})
add_definitions(-D_USE_MATH_DEFINES)
add_library(${PROJECT_NAME} ${headers_private} ${headers} ${sources})
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " ${IPOPT_LINK_FLAGS}")
target_link_libraries(${PROJECT_NAME} ctrlLib iKin ${YARP_LIBRARIES} ${IPOPT_LIBRARIES})
Expand Down
1 change: 1 addition & 0 deletions libraries/cer_kinematics_alt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ include_directories(${PROJECT_SOURCE_DIR}/include
${ICUB_INCLUDE_DIRS}
${YARP_INCLUDE_DIRS})

add_definitions(-D_USE_MATH_DEFINES)
add_library(${PROJECT_NAME} ${headers_private} ${headers} ${sources})
target_link_libraries(${PROJECT_NAME} ${YARP_LIBRARIES})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __CER_GEOMETRY_H__
#define __CER_GEOMETRY_H__

#define _USE_MATH_DEFINES
#include <math.h>
//#include <cmath>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#define SAFE_MODE

#define _USE_MATH_DEFINES
#include <math.h>
#include <stdlib.h>

Expand Down
1 change: 1 addition & 0 deletions modules/reaching/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ get_property(cer_kinematics_INCLUDE_DIRS
PROPERTY BUILD_INTERFACE_INCLUDE_DIRECTORIES)

include_directories(${YARP_INCLUDE_DIRS} ${ICUB_INCLUDE_DIRS} ${cer_kinematics_INCLUDE_DIRS})
add_definitions(-D_USE_MATH_DEFINES)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} ${YARP_LIBRARIES} ctrlLib iKin cer_kinematics)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
Expand Down
1 change: 0 additions & 1 deletion modules/reaching/controller/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Public License for more details
*/

#define _USE_MATH_DEFINES
#include <cmath>
#include <algorithm>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions modules/reaching/solver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ get_property(cer_kinematics_INCLUDE_DIRS
PROPERTY BUILD_INTERFACE_INCLUDE_DIRECTORIES)

include_directories(${YARP_INCLUDE_DIRS} ${cer_kinematics_INCLUDE_DIRS})
add_definitions(-D_USE_MATH_DEFINES)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} ${YARP_LIBRARIES} cer_kinematics)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
Expand Down
1 change: 0 additions & 1 deletion modules/reaching/solver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Public License for more details
*/

#define _USE_MATH_DEFINES
#include <cmath>
#include <algorithm>
#include <string>
Expand Down

0 comments on commit 9b95cc8

Please sign in to comment.