mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
revamp zstd find behaviour
This commit is contained in:
@@ -44,11 +44,6 @@ else()
|
||||
endif()
|
||||
|
||||
target_compile_definitions(tmxlite PRIVATE USE_ZSTD)
|
||||
if (USE_BUNDLED_ZSTD)
|
||||
target_link_libraries(tmxlite zstd::static)
|
||||
else()
|
||||
target_include_directories(tmxlite PRIVATE ${ZSTD_INCLUDE_DIR})
|
||||
target_link_libraries(tmxlite ZLIB::ZLIB ${ZSTD_LIBRARY})
|
||||
endif()
|
||||
target_link_libraries(tmxlite Zstd::Zstd)
|
||||
|
||||
target_include_directories(tmxlite PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
@@ -108,7 +108,8 @@ endif()
|
||||
set_source_files_properties(${Sources} PROPERTIES LANGUAGE C)
|
||||
|
||||
add_library(zstd STATIC ${Sources} ${Headers})
|
||||
add_library(zstd::static ALIAS zstd)
|
||||
add_library(Zstd::static ALIAS zstd)
|
||||
add_library(Zstd::Zstd ALIAS zstd)
|
||||
|
||||
add_zstd_compilation_flags(zstd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user