mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
build: Link tinyxml2 statically in cmake/win32
This commit is contained in:
parent
24f10eca61
commit
011ee6331e
|
@ -3,12 +3,6 @@ set(SRCS
|
||||||
src/tinyxml2.cpp
|
src/tinyxml2.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32)
|
add_library(tinyxml2 ${SRCS})
|
||||||
add_library(tinyxml2 SHARED ${SRCS})
|
target_include_directories(tinyxml2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
target_include_directories(tinyxml2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
||||||
target_compile_definitions(tinyxml2 PRIVATE "TINYXML2_EXPORT")
|
|
||||||
target_compile_definitions(tinyxml2 INTERFACE "TINYXML2_IMPORT")
|
|
||||||
else()
|
|
||||||
add_library(tinyxml2 ${SRCS})
|
|
||||||
target_include_directories(tinyxml2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
||||||
endif()
|
|
||||||
|
|
Loading…
Reference in a new issue