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 DARTCoreConfig.cmake #361

Merged
merged 2 commits into from
Mar 21, 2015
Merged

Conversation

scpeters
Copy link
Collaborator

The fix from #352 doesn't work if the downstream code
doesn't have the HAVE_BULLET_COLLISION variable defined.
This change just inserts the BULLET_INCLUDE_DIRS
variable into DARTCore_INCLUDE_DIRS
and trusts that it will be blank and not affect
anything if it is unset.

Closes #351.

The fix from #352 doesn't work if the downstream code
doesn't have the HAVE_BULLET_COLLISION variable defined.
This change just inserts the BULLET_INCLUDE_DIRS
variable into DARTCore_INCLUDE_DIRS
and trusts that it will be blank and not affect
anything if it is unset.

Closes #351.
@jslee02
Copy link
Member

jslee02 commented Mar 21, 2015

You're right. +1

By the way, don't we need quotes? I'm not sure when quotes are required.

@scpeters
Copy link
Collaborator Author

It works without quotes on my machine. Maybe quotes are needed if there are spaces in the path? I can put them in. I took them out because it left a "" in the list when bullet was not found. But I'll put them back in.

@jslee02
Copy link
Member

jslee02 commented Mar 21, 2015

@jslee02 jslee02 modified the milestones: Release DART 5.0, Release DART 4.3 Mar 21, 2015
jslee02 added a commit that referenced this pull request Mar 21, 2015
Fix BULLET_INCLUDE_DIRS in DARTCoreConfig.cmake
@jslee02 jslee02 merged commit e6eeba6 into release-4.3 Mar 21, 2015
@jslee02 jslee02 deleted the issue_351 branch March 24, 2015 20:24
jslee02 added a commit that referenced this pull request Apr 24, 2016
The fix from #361 doesn't work if bullet package was found by `find_package`. If 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 CMakeList.txt depending on the condition of that bullet has found, and then use it in DART[Core]Config.cmake.in.
jslee02 added a commit that referenced this pull request Apr 24, 2016
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.

2 participants