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

Fix BULLET_INCLUDE_DIRS in DARTConfig.cmake #697

Merged
merged 1 commit into from
Apr 25, 2016

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Apr 24, 2016

The fix from #361 doesn't work if bullet package was failed to be found by find_package(). When bullet is not found, BULLET_INCLUDE_DIRS will be set to BULLET_INCLUDE_DIRS-NOT-FOUND rather than blank as we assumed in #361.

Instead, we set DART_INCLUDE_DIRS in the top level CMakeList.txt by adding BULLET_INCLUDE_DIRS to DART_INCLUDE_DIRS only when bullet is found. DARTConfig.cmake is then configured using DART_INCLUDE_DIRS.


This change is Reviewable

The fix from #361 doesn't work if bullet packages was failed to be found by `find_package()`. When bullet is not found, `BULLET_INCLUDE_DIRS` will be set to `BULLET_INCLUDE_DIRS-NOT-FOUND` rather than blank as we assumed in #361.

Instead, we set `DART_INCLUDE_DIRS` in the top level CMakeList.txt by adding `BULLET_INCLUDE_DIRS` to `DART_INCLUDE_DIRS` only when bullet is found. `DARTConfig.cmake` is then configured using `DART_INCLUDE_DIRS`.
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

Successfully merging this pull request may close these issues.

1 participant