fix :sdl2 use static link

This commit is contained in:
yangchao 2022-02-25 19:00:38 +08:00
parent 973e244526
commit 2de7f4d5b2
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
)