fix :sdl2 use static link (#224)

This commit is contained in:
yangchao 2022-02-28 09:45:47 +08:00 committed by GitHub
parent 973e244526
commit 349eed9b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -118,9 +118,9 @@ set_target_properties(tbb PROPERTIES
set(optional_libs_name ${optional_libs_name} tbb)
endif()
add_library(sdl2 SHARED IMPORTED GLOBAL)
add_library(sdl2 STATIC IMPORTED GLOBAL)
set_target_properties(sdl2 PROPERTIES
IMPORTED_LOCATION ${linux_lib_dir}/sdl2/libSDL2.so
IMPORTED_LOCATION ${linux_lib_dir}/sdl2/libSDL2.a
INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/sdl2
)