Skip to content

Commit

Permalink
Adds some options for gabime/spdlog lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeul d'Avezac committed Dec 14, 2016
1 parent c5312a5 commit ea0cb0a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions modules/LookUpspdlog.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# Installs GBenchmark into build directory
# Installs gabime/spdlog into build directory
#
# - GIT_REPOSITORY: defaults to origin gabime repo on github
# - GIT_TAG: defaults to master

if(spdlog_ARGUMENTS)
cmake_parse_arguments(spdlog "" "GIT_REPOSITORY;GIT_TAG" ""
${spdlog_ARGUMENTS})
endif()
if(NOT spdlog_GIT_REPOSITORY)
set(spdlog_GIT_REPOSITORY https://github.com/gabime/spdlog.git)
endif()
if(NOT spdlog_GIT_TAG)
set(spdlog_GIT_TAG master)
endif()
ExternalProject_Add(
Lookup-spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog
GIT_REPOSITORY ${spdlog_GIT_REPOSITORY}
GIT_TAG ${spdlog_GIT_TAG}
PREFIX "${EXTERNAL_ROOT}"
# Force separate output paths for debug and release builds to allow easy
# identification of correct lib in subsequent TARGET_LINK_LIBRARIES commands
Expand Down

0 comments on commit ea0cb0a

Please sign in to comment.