Skip to content

Commit 47c6011

Browse files
authored
Merge pull request #21 from hwiedDFKI/master
Fix yaml-cpp linking in python binings
2 parents f8fd0de + d18c066 commit 47c6011

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# CMakeLists.txt has to be located in the project folder and cmake has to be
22
# executed from 'project/build' with 'cmake ../'.
3-
cmake_minimum_required(VERSION 2.6)
3+
cmake_minimum_required(VERSION 3.0)
44
find_package(Rock)
5+
project(lib_config VERSION 0.1)
56
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
67

7-
rock_init(lib_config 0.1)
8+
rock_init()
89
include_directories(src)
910
rock_standard_layout()
1011

bindings/python/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}")
1818
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}")
1919
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}")
2020

21-
22-
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
21+
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ${yaml-cpp_PKGCONFIG_INCLUDE_DIRS})
2322

2423
PYTHON_ADD_MODULE(bundle bundle.cpp)
2524
set_target_properties(bundle PROPERTIES PREFIX "")
2625
target_link_libraries(bundle
2726
${Boost_LIBRARIES}
2827
lib_config
2928
${PYTHON_LIBRARIES}
29+
${yaml-cpp_PKGCONFIG_LIBRARIES}
3030
)
3131

3232
add_custom_target(rockpy

0 commit comments

Comments
 (0)