matrixion/deps/cmake/SpdLog.cmake

23 lines
492 B
CMake
Raw Normal View History

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
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}
-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)