wip cmake

This commit is contained in:
gabime 2019-04-27 19:40:24 +03:00
parent 3ecc3ab798
commit 338125b93a

View File

@ -29,8 +29,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCH
add_compile_options("-Wfatal-errors") add_compile_options("-Wfatal-errors")
endif() endif()
set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include/spdlog")
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
# address sanitizers check # address sanitizers check
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
@ -53,6 +51,8 @@ option(SPDLOG_BUILD_TESTS "Build tests" ${SPDLOG_MASTER_PROJECT})
option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF) option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF)
option(SPDLOG_INSTALL "Generate the install target." ${SPDLOG_MASTER_PROJECT}) option(SPDLOG_INSTALL "Generate the install target." ${SPDLOG_MASTER_PROJECT})
set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include/spdlog")
if(SPDLOG_STATIC_LIB) if(SPDLOG_STATIC_LIB)
add_definitions(-DSPDLOG_STATIC_LIB) add_definitions(-DSPDLOG_STATIC_LIB)
file(GLOB SRC_FILES ${HEADER_BASE}/impl/*.cpp) file(GLOB SRC_FILES ${HEADER_BASE}/impl/*.cpp)