Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with including boost in CMakeLists.txt #18

Open
mixmixmix opened this issue Jun 13, 2016 · 0 comments
Open

Problem with including boost in CMakeLists.txt #18

mixmixmix opened this issue Jun 13, 2016 · 0 comments

Comments

@mixmixmix
Copy link

Hello:

Just a suggestion.
Boost should be included in CMakeList.txt in a more generic way:

find_package( Boost COMPONENTS python system REQUIRED )
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIR})

instead of
set(BOOST_LIBS "-lboost_system -lboost_python3")
Otherwise on some systems it throws a linker error:
/usr/bin/ld: cannot find -lboost_python3.

I'd create a pull request but sadly I still haven't solved problems with Boost.Numpy (ndarray/Boost.NumPy#43).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant