mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 01:32:07 +08:00
Updated cmakelists.txt
This commit is contained in:
parent
dcf664ee1d
commit
2a0db06e7b
@ -3,7 +3,10 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(spdlog_example CXX)
|
||||
|
||||
if(NOT TARGET spdlog)
|
||||
# Stand-alone build
|
||||
find_package(spdlog REQUIRED)
|
||||
endif()
|
||||
|
||||
add_executable(example example.cpp)
|
||||
target_link_libraries(example PRIVATE spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|
||||
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|
||||
|
Loading…
Reference in New Issue
Block a user