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
cmake: errors when using SDL_sound as submodule #81
Conversation
Signed-off-by: ccvelandres <ccvelandres@gmail.com>
Signed-off-by: ccvelandres <ccvelandres@gmail.com>
53df0ac -- Adds include directories when using SDL_sound as submodule |
CC: @madebr |
Signed-off-by: ccvelandres <ccvelandres@gmail.com>
Signed-off-by: ccvelandres <ccvelandres@gmail.com>
@madebr: Is this good now? |
ccvelandres#1 contains my (locally tested) suggestions |
cmake: create aliases + double quote escape build interface groups
Merged ccvelandres#1 and also tested locally on my end |
One other thing I've noticed is this: we are disabling RPATH for SDL2_sound which causes this error: In SDL, RPATH depends on ${UNIX_SYS} --> https://github.com/libsdl-org/SDL/blob/SDL2/CMakeLists.txt#L165 and https://github.com/libsdl-org/SDL/blob/SDL2/CMakeLists.txt#L438 Should we enable RPATH for unix systems same as SDL? or enable BUILD_RPATH and skip INSTALL_RPATH? |
Personally, I would remove these 2 lines. The default behavior of CMake is imho fine: use a RUNPATH in the build directory, but remove it when installing. |
Thanks. |
Genexp doesn't work in cmake versions below 3.26 in certain usage. (latest cmake release is still 3.25)
SDL_sound/CMakeLists.txt
Line 248 in 6cb07c2
See note in https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex:TARGET_PROPERTY for reference.
Directory looks like this: