fix :sdl2 use static link (#224)
This commit is contained in:
parent
973e244526
commit
349eed9b0b
|
|
@ -118,9 +118,9 @@ set_target_properties(tbb PROPERTIES
|
||||||
set(optional_libs_name ${optional_libs_name} tbb)
|
set(optional_libs_name ${optional_libs_name} tbb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(sdl2 SHARED IMPORTED GLOBAL)
|
add_library(sdl2 STATIC IMPORTED GLOBAL)
|
||||||
set_target_properties(sdl2 PROPERTIES
|
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
|
INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/sdl2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue