Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2019-05-11 13:52:46 +0300
committergabime <gmelman1@gmail.com>2019-05-11 13:52:46 +0300
commit005450ff13b268ab5e78a15dfd5d0b342327e91a (patch)
treeec910cdf0ff95f5d95493f04518c497c8dc2c08a /CMakeLists.txt
parentf809427575aa0acb63853904a6679f693d17300c (diff)
wip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ebb465e..775e236f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,8 @@ message(STATUS "Static lib: " ${SPDLOG_STATIC_LIB})
if(SPDLOG_STATIC_LIB)
add_definitions(-DSPDLOG_STATIC_LIB)
- file(GLOB SRC_FILES ${HEADER_BASE}/impl/*.cpp)
+ set(SRC_BASE "${CMAKE_CURRENT_SOURCE_DIR}/src")
+ set(SRC_FILES "${SRC_BASE}/spdlog.cpp" "${SRC_BASE}/format.cc")
add_library(spdlog STATIC ${SRC_FILES})
target_include_directories(spdlog PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>")
target_link_libraries(spdlog -Wl,--as-needed)