Skip to content

Commit

Permalink
sdl: make include directories PUBLIC in fallback path
Browse files Browse the repository at this point in the history
Because the library link is PUBLIC, when we have a new SDL2 with the targets defined, the include dirs also end up public. Change this in the fallback path for consistency.
  • Loading branch information
Daft-Freak authored Oct 8, 2024
1 parent 06b84c4 commit bbb78ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 32blit-sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ else()
set(SDL2_LIBRARIES SDL2::SDL2main SDL2::SDL2-static)
else()
target_include_directories(BlitHalSDL
PRIVATE ${SDL2_INCLUDE_DIRS}
PUBLIC ${SDL2_INCLUDE_DIRS}
)
endif()

Expand All @@ -92,7 +92,7 @@ else()
find_sdl_lib(SDL2_net SDL_net.h)

target_include_directories(BlitHalSDL
PRIVATE ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_NET_INCLUDE_DIR}
PUBLIC ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_NET_INCLUDE_DIR}
)
endif()

Expand Down

0 comments on commit bbb78ae

Please sign in to comment.