fix my wrong changes: install spdlog target too

pull/1165/head
ClausKlein 6 years ago
parent bec2f42b34
commit f5fa88d48a

@ -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

@ -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()

Loading…
Cancel
Save