[Buildroot] [git commit] package/sdl2: remove sdl2-config.cmake
thomas.petazzoni at bootlin.com
Wed Jun 24 21:47:23 UTC 2020
We are using autotools build system for sdl2, so the sdl2-config.cmake
include path are not resolved like for sdl2-config script .
Remove sdl2-config.cmake file and avoid unsafe include path if this
file is used by a cmake based package.
This trigger an issue with ogre 1.12.6 package that replaced
FindSDL2.cmake by sdl2-config.cmake .
Thanks to Pavel Rojtberg for the help .
Signed-off-by: Romain Naour <romain.naour at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
package/sdl2/sdl2.mk | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 830873c9e4..6ef530fb43 100644
@@ -20,6 +20,16 @@ SDL2_CONF_OPTS += \
+# We are using autotools build system for sdl2, so the sdl2-config.cmake
+# include path are not resolved like for sdl2-config script.
+# Remove sdl2-config.cmake file and avoid unsafe include path if this
+# file is used by a cmake based package.
+ rm -rf $(STAGING_DIR)/usr/lib/cmake/SDL2
+SDL2_POST_INSTALL_STAGING_HOOKS += SDL2_REMOVE_SDL2_CONFIG_CMAKE
# We must enable static build to get compilation successful.
SDL2_CONF_OPTS += --enable-static
More information about the buildroot