This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Repository navigation
fix cmake use of yaml-cpp and sdl / sdl-image in map_server - #560
Merged
mikeferguson merged 1 commit intoApr 16, 2017
Merged
Conversation
Contributor
Author
|
Also, the SDL and SDL_image CMake Modules ship with CMake:
I couldn't find where they were initially introduced, but I think it was a long time ago. The build farm will tell if they were recent additions. |
Contributor
|
For reference: these 2 files are present on the 2.8.3 branch of the cmake repo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While hacking on a port of this for ROS 2 (for a demo) I found that the cmake, especially with respect to finding and using dependencies, was more fragile than it has to be. So I open this pr, which:
find_package()of boost (it's not used directly)find_package()the existing depSDL-imageand the implicit dep onSDLmacOSbecauseSDL-imageheaders assume they are installed to the same folder asSDLheaders, which is not the case with Homebrew.package.xmldependency onSDL(https://github.com/ros/rosdistro/blob/7249ca98502a9efef4d96ef9c0feb09e9c0fc62c/rosdep/base.yaml#L3756-L3761)Also, I would have used
target_include_directories, but I think I need CMake 3.0.2 for that and I didn't want to mess with the minimum CMake version, but I might propose something like that in the future.