We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03470f5 commit 5730277Copy full SHA for 5730277
1 file changed
cmake/SDL2Target.cmake
@@ -55,7 +55,7 @@ endif()
55
56
# Temporary fix to deal with wrong include dir set by SDL2's CMake configuration.
57
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)
+if(_SDL2_INCLUDE_DIR MATCHES "(.+)/SDL2\$")
59
# Check if SDL2::SDL2 is aliased to SDL2::SDL2-static (will be the case for static-only builds)
60
get_target_property(_SDL2_ALIASED_TARGET SDL2::SDL2 ALIASED_TARGET)
61
if(_SDL2_ALIASED_TARGET)
0 commit comments