Skip to content

Commit 5730277

Browse files
committed
macos build fix
1 parent 03470f5 commit 5730277

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/SDL2Target.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ endif()
5555

5656
# Temporary fix to deal with wrong include dir set by SDL2's CMake configuration.
5757
get_target_property(_SDL2_INCLUDE_DIR SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES)
58-
if(_SDL2_INCLUDE_DIR MATCHES "(.+)/SDL2\$" AND _SDL2_TARGET_TYPE STREQUAL STATIC_LIBRARY)
58+
if(_SDL2_INCLUDE_DIR MATCHES "(.+)/SDL2\$")
5959
# Check if SDL2::SDL2 is aliased to SDL2::SDL2-static (will be the case for static-only builds)
6060
get_target_property(_SDL2_ALIASED_TARGET SDL2::SDL2 ALIASED_TARGET)
6161
if(_SDL2_ALIASED_TARGET)

0 commit comments

Comments
 (0)