Skip to content

Commit

Permalink
use modern pugixml target
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrelliCopter committed Apr 10, 2024
1 parent 6a6d589 commit 708fd13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ext/pugixml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ add_library(pugixml STATIC
src/pugixml.hpp
src/pugixml.cpp)
add_library(pugixml::static ALIAS pugixml)
add_library(pugixml::pugixml ALIAS pugixml)

set_target_properties(pugixml PROPERTIES
CXX_STANDARD_REQUIRED ON
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ target_compile_options(tmx2gba PRIVATE
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Wall -Wextra -pedantic>
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded>)

target_link_libraries(tmx2gba pugixml base64::base64 Zstd::Zstd
target_link_libraries(tmx2gba
pugixml::pugixml base64::base64 Zstd::Zstd
$<$<TARGET_EXISTS:ZLIB::ZLIB>:ZLIB::ZLIB>
$<$<TARGET_EXISTS:miniz::miniz>:miniz::miniz>)

Expand Down

0 comments on commit 708fd13

Please sign in to comment.