diff options
author | David Zemon <david@zemon.name> | 2019-05-18 07:15:08 +0300 |
---|---|---|
committer | David Zemon <david@zemon.name> | 2019-05-18 07:27:44 +0300 |
commit | 55e7844ca079c31d798aeb77339df404fcc1626a (patch) | |
tree | e08990c61629d10f5980bd06fc92e5fdb4b81425 /CMakeLists.txt | |
parent | 8dd85285e7a87a1a7347f3d6b4d409e4eed44eb6 (diff) |
Remove the namespaced
Namespaces are good for avoiding collisions, but since the
non-namespaced targets still exist, it does no good to add the
namespaced targets on top.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 042ac7a7..c939248b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,6 @@ message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) # Build library
add_library(spdlog src/spdlog.cpp)
-add_library(spdlog::spdlog ALIAS spdlog)
target_compile_definitions(spdlog PUBLIC SPDLOG_COMPILED_LIB )
target_include_directories(spdlog PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>")
set_target_properties(spdlog PROPERTIES OUTPUT_NAME "spdlog")
@@ -67,7 +66,6 @@ set_target_properties(spdlog PROPERTIES DEBUG_POSTFIX "-debug") # Headr only
add_library(spdlog_header_only INTERFACE)
target_include_directories(spdlog_header_only INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>")
-add_library(spdlog::header_only ALIAS spdlog_header_only)
if(SPDLOG_FMT_EXTERNAL AND NOT TARGET fmt::fmt)
find_package(fmt REQUIRED CONFIG)
|