mirror of
https://github.com/vgough/encfs.git
synced 2024-11-28 10:54:15 +01:00
update tinyxml2 build rules
This commit is contained in:
parent
75c63e9267
commit
24a8314659
@ -69,17 +69,6 @@ add_definitions (-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26)
|
|||||||
find_package (OpenSSL REQUIRED)
|
find_package (OpenSSL REQUIRED)
|
||||||
include_directories (${OPENSSL_INCLUDE_DIR})
|
include_directories (${OPENSSL_INCLUDE_DIR})
|
||||||
|
|
||||||
if (USE_INTERNAL_TINYXML)
|
|
||||||
message("-- Using local TinyXML2 copy")
|
|
||||||
add_subdirectory(internal/tinyxml2-3.0.0)
|
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/internal/tinyxml2-3.0.0)
|
|
||||||
link_directories(${CMAKE_BINARY_DIR}/internal/tinyxml2-3.0.0)
|
|
||||||
set(TINYXML_LIBRARIES tinyxml2)
|
|
||||||
else ()
|
|
||||||
find_package (TinyXML REQUIRED)
|
|
||||||
include_directories (${TINYXML_INCLUDE_DIR})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
find_program (POD2MAN pod2man)
|
find_program (POD2MAN pod2man)
|
||||||
|
|
||||||
# Check for include files and stdlib properties.
|
# Check for include files and stdlib properties.
|
||||||
@ -151,6 +140,21 @@ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.5) # Need 3.6 or abo
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (USE_INTERNAL_TINYXML)
|
||||||
|
message("-- Using local TinyXML2 copy")
|
||||||
|
set(TINYXML_DIR vendor/github.com/leethomason/tinyxml2)
|
||||||
|
set(BUILD_STATIC_LIBS ON CACHE BOOL "build static libs")
|
||||||
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "build shared libs")
|
||||||
|
set(BUILD_TESTS OFF CACHE BOOL "build tests")
|
||||||
|
add_subdirectory(${TINYXML_DIR})
|
||||||
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/${TINYXML_DIR}/)
|
||||||
|
link_directories(${CMAKE_BINARY_DIR}/${TINYXML_DIR}/)
|
||||||
|
set(TINYXML_LIBRARIES tinyxml2)
|
||||||
|
else ()
|
||||||
|
find_package (TinyXML REQUIRED)
|
||||||
|
include_directories (${TINYXML_INCLUDE_DIR})
|
||||||
|
endif ()
|
||||||
|
|
||||||
set(SOURCE_FILES
|
set(SOURCE_FILES
|
||||||
internal/easylogging++.cc
|
internal/easylogging++.cc
|
||||||
encfs/autosprintf.cpp
|
encfs/autosprintf.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user