From 4ad4fe67c7f832ec6e8e8a5c04b030691753f39a Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 20 Jun 2022 20:47:21 +0200 Subject: [PATCH] cmake: install generated SDL_config.h The generated SDL_config.h recently changed location, so update the install. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76c457cde..1071feaa1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3169,12 +3169,12 @@ if(NOT SDL2_DISABLE_INSTALL) ) file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h) - file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h) - foreach(_FNAME ${BIN_INCLUDE_FILES}) - get_filename_component(_INCNAME ${_FNAME} NAME) - list(REMOVE_ITEM INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/${_INCNAME}) - endforeach() - list(APPEND INCLUDE_FILES ${BIN_INCLUDE_FILES}) + list(REMOVE_ITEM INCLUDE_FILES + "${SDL2_SOURCE_DIR}/include/SDL_config.h" + "${SDL2_SOURCE_DIR}/include/SDL_revision.h") + list(APPEND INCLUDE_FILES + "${SDL2_BINARY_DIR}/include/SDL_revision.h" + "${SDL2_BINARY_DIR}/include-config-$>/SDL_config.h") install(FILES ${INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SDL2) string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)