2018-06-17 00:23:49 +03:00
|
|
|
set(WINDOWS_FLAGS "")
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(WINDOWS_FLAGS "-DCMAKE_GENERATOR_PLATFORM=x64")
|
|
|
|
endif()
|
|
|
|
|
2018-06-04 13:54:51 +03:00
|
|
|
ExternalProject_Add(
|
|
|
|
SpdLog
|
|
|
|
|
2018-08-08 14:15:14 +03:00
|
|
|
URL ${SPDLOG_URL}
|
|
|
|
URL_HASH SHA256=${SPDLOG_HASH}
|
2018-06-04 13:54:51 +03:00
|
|
|
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
SOURCE_DIR ${DEPS_BUILD_DIR}/spdlog
|
|
|
|
CONFIGURE_COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
|
2018-06-09 16:03:14 +03:00
|
|
|
-DSPDLOG_BUILD_EXAMPLES=0
|
2018-09-01 13:35:10 +03:00
|
|
|
-DSPDLOG_BUILD_BENCH=0
|
2018-06-09 16:03:14 +03:00
|
|
|
-DSPDLOG_BUILD_TESTING=0
|
2018-06-04 13:54:51 +03:00
|
|
|
${DEPS_BUILD_DIR}/spdlog
|
2018-06-17 00:23:49 +03:00
|
|
|
${WINDOWS_FLAGS})
|
2018-06-04 13:54:51 +03:00
|
|
|
|
|
|
|
list(APPEND THIRD_PARTY_DEPS SpdLog)
|