diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ee5b4a2..68758261 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,7 +170,7 @@ if(SPDLOG_INSTALL) # Include files #--------------------------------------------------------------------------------------- install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") - install(TARGETS spdlog_header_only EXPORT spdlog DESTINATION "${CMAKE_INSTALL_LIBDIR}/spdlog") + install(TARGETS spdlog spdlog_header_only EXPORT spdlog DESTINATION "${CMAKE_INSTALL_LIBDIR}/spdlog") #--------------------------------------------------------------------------------------- # Package and version files diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 222487ed..7a89ef24 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13) project(spdlog_examples CXX) -if(NOT TARGET spdlog_header_only) +if(NOT TARGET spdlog) # Stand-alone build find_package(spdlog REQUIRED) endif()