mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
fix for building with system tinyxml
This commit is contained in:
parent
6f64b1b9db
commit
9637e1641b
@ -167,6 +167,7 @@ if(USE_SYSTEM_TINYXML)
|
|||||||
find_library(TINYXML_LIBRARIES tinyxml)
|
find_library(TINYXML_LIBRARIES tinyxml)
|
||||||
find_path(TINYXML_INCLUDE_DIR tinyxml.h)
|
find_path(TINYXML_INCLUDE_DIR tinyxml.h)
|
||||||
message(STATUS "Found TinyXML: ${TINYXML_LIBRARIES} ${TINYXML_INCLUDE_DIR}")
|
message(STATUS "Found TinyXML: ${TINYXML_LIBRARIES} ${TINYXML_INCLUDE_DIR}")
|
||||||
|
add_definitions (-DTIXML_USE_STL)
|
||||||
if(TINYXML_LIBRARIES AND TINYXML_INCLUDE_DIR)
|
if(TINYXML_LIBRARIES AND TINYXML_INCLUDE_DIR)
|
||||||
include_directories(${TINYXML_INCLUDE_DIR})
|
include_directories(${TINYXML_INCLUDE_DIR})
|
||||||
message(STATUS "Using system TinyXML library.")
|
message(STATUS "Using system TinyXML library.")
|
||||||
|
@ -119,6 +119,10 @@ target_link_libraries(openmw
|
|||||||
components
|
components
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (USE_SYSTEM_TINYXML)
|
||||||
|
target_link_libraries(openmw ${TINYXML_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT UNIX)
|
if (NOT UNIX)
|
||||||
target_link_libraries(openmw ${SDL2MAIN_LIBRARY})
|
target_link_libraries(openmw ${SDL2MAIN_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user