Skip to content

Commit

Permalink
CMake: Fix building with separate build dir
Browse files Browse the repository at this point in the history
When building the python SWIG bindings in a separate build dir,
the build needs the directory of the build include path to get
pdal/pdal_defines.h.
  • Loading branch information
simonsonc committed Mar 16, 2014
1 parent 25a5c41 commit 80e8baa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/CMakeLists.txt
Expand Up @@ -2,6 +2,7 @@ if (SWIG_FOUND)
find_package(PythonLibs 2.4)
include_directories(${PYTHON_INCLUDE_PATH})
include_directories("${PDAL_SOURCE_DIR}/include")
include_directories("${PROJECT_BINARY_DIR}/include")
set_source_files_properties(pdal.i PROPERTIES CPLUSPLUS ON)
swig_add_module(pdal python pdal.i)
swig_link_libraries(pdal ${PYTHON_LIBRARIES})
Expand Down

0 comments on commit 80e8baa

Please sign in to comment.