mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-27 20:56:41 +00:00
fix compile warning
This commit is contained in:
Vendored
+4
-1
@@ -5,7 +5,10 @@ set(SDL_TEST OFF CACHE BOOL "" FORCE)
|
|||||||
add_subdirectory(sdl2 build_sdl2)
|
add_subdirectory(sdl2 build_sdl2)
|
||||||
|
|
||||||
if (CLANG AND NOT ANDROID)
|
if (CLANG AND NOT ANDROID)
|
||||||
target_compile_options(SDL2-static PRIVATE -Wno-pragma-pack -Wno-unused-command-line-argument -Wno-unused-function -Wno-incompatible-function-pointer-types -Wno-unused-but-set-variable -Wno-unused-const-variable)
|
target_compile_options(SDL2-static PRIVATE -Wno-pragma-pack -Wno-unused-command-line-argument -Wno-unused-function -Wno-incompatible-function-pointer-types -Wno-unused-const-variable)
|
||||||
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0.0)
|
||||||
|
target_compile_options(SDL2-static PRIVATE -Wno-unused-but-set-variable)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC AND NOT CLANG)
|
if (MSVC AND NOT CLANG)
|
||||||
|
|||||||
@@ -181,13 +181,6 @@ target_link_libraries(fc_script sys)
|
|||||||
target_link_libraries(fc_script math)
|
target_link_libraries(fc_script math)
|
||||||
target_link_libraries(fc_script scripts)
|
target_link_libraries(fc_script scripts)
|
||||||
target_link_libraries(fc_script lua)
|
target_link_libraries(fc_script lua)
|
||||||
if (MSVC OR MINGW)
|
|
||||||
target_link_libraries(fc_script opengl32)
|
|
||||||
target_link_libraries(fc_script iphlpapi)
|
|
||||||
target_link_libraries(fc_script setupapi)
|
|
||||||
target_link_libraries(fc_script ws2_32)
|
|
||||||
target_link_libraries(fc_script psapi)
|
|
||||||
endif()
|
|
||||||
target_link_libraries(fc_script SDL2-static)
|
target_link_libraries(fc_script SDL2-static)
|
||||||
target_link_libraries(fc_script emulator)
|
target_link_libraries(fc_script emulator)
|
||||||
target_link_libraries(fc_script rijndael)
|
target_link_libraries(fc_script rijndael)
|
||||||
@@ -196,6 +189,13 @@ target_link_libraries(fc_script sqlite)
|
|||||||
target_link_libraries(fc_script zstd)
|
target_link_libraries(fc_script zstd)
|
||||||
target_link_libraries(fc_script easy_profiler)
|
target_link_libraries(fc_script easy_profiler)
|
||||||
target_link_libraries(fc_script cpuinfo)
|
target_link_libraries(fc_script cpuinfo)
|
||||||
|
if (MSVC OR MINGW)
|
||||||
|
target_link_libraries(fc_script opengl32)
|
||||||
|
target_link_libraries(fc_script iphlpapi)
|
||||||
|
target_link_libraries(fc_script setupapi)
|
||||||
|
target_link_libraries(fc_script ws2_32)
|
||||||
|
target_link_libraries(fc_script psapi)
|
||||||
|
endif()
|
||||||
if (CLANG AND NOT MSVC)
|
if (CLANG AND NOT MSVC)
|
||||||
target_link_libraries(fc_script pthread)
|
target_link_libraries(fc_script pthread)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user