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
|
|
|
|
|
|
|
|
GIT_REPOSITORY ${SPDLOG_URL}
|
|
|
|
GIT_TAG ${SPDLOG_TAG}
|
|
|
|
|
|
|
|
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
|
|
|
|
-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)
|