mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Update cmake config for tinyxml2 9.0.0
This commit is contained in:
parent
b9d2a5302a
commit
6c41138b02
@ -229,16 +229,11 @@ endif()
|
|||||||
if (USE_INTERNAL_TINYXML)
|
if (USE_INTERNAL_TINYXML)
|
||||||
message("-- Using vendored TinyXML2")
|
message("-- Using vendored TinyXML2")
|
||||||
set(TINYXML_DIR vendor/github.com/leethomason/tinyxml2)
|
set(TINYXML_DIR vendor/github.com/leethomason/tinyxml2)
|
||||||
|
set(TINYXML_LIBRARIES tinyxml2)
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
set(BUILD_STATIC_LIBS OFF CACHE BOOL "build static libs")
|
|
||||||
set(BUILD_SHARED_LIBS ON CACHE BOOL "build shared libs")
|
set(BUILD_SHARED_LIBS ON CACHE BOOL "build shared libs")
|
||||||
set(TINYXML_LIBRARIES tinyxml2)
|
|
||||||
else ()
|
|
||||||
set(BUILD_STATIC_LIBS ON CACHE BOOL "build static libs")
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "build shared libs")
|
|
||||||
set(TINYXML_LIBRARIES tinyxml2_static)
|
|
||||||
endif ()
|
endif ()
|
||||||
set(BUILD_TESTS OFF CACHE BOOL "build tests")
|
set(BUILD_TESTING OFF CACHE BOOL "build tests")
|
||||||
add_subdirectory(${TINYXML_DIR} EXCLUDE_FROM_ALL)
|
add_subdirectory(${TINYXML_DIR} EXCLUDE_FROM_ALL)
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/${TINYXML_DIR})
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/${TINYXML_DIR})
|
||||||
link_directories(${CMAKE_BINARY_DIR}/${TINYXML_DIR})
|
link_directories(${CMAKE_BINARY_DIR}/${TINYXML_DIR})
|
||||||
|
Loading…
Reference in New Issue
Block a user