cmake: SDL2 target is not always available
(cherry picked from commit 7cf3234efe)
This commit is contained in:
1 parent
ba2f78a006
commit
b7457ff61b
1 file changed
+4
-1
+4
-1
@@ -3520,7 +3520,10 @@ if(SDL_TEST)
|
||||
endif()
|
||||
|
||||
if(MSVC AND NOT SDL_LIBC)
|
||||
set(targets SDL2)
|
||||
set(targets )
|
||||
if(TARGET SDL2)
|
||||
list(APPEND targets SDL2)
|
||||
endif()
|
||||
if(TARGET SDL2-static)
|
||||
list(APPEND targets SDL2-static)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user