mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 09:09:35 +08:00
Fix MinGW build issue on example (#2642)
* Fix MinGW build issue on example #2638 * Move the cmake change to example\CMakeLists.txt * Update CMakeLists.txt on the example
This commit is contained in:
@@ -12,7 +12,7 @@ endif()
|
||||
# Example of using pre-compiled library
|
||||
# ---------------------------------------------------------------------------------------
|
||||
add_executable(example example.cpp)
|
||||
target_link_libraries(example PRIVATE spdlog::spdlog)
|
||||
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
|
||||
|
||||
# ---------------------------------------------------------------------------------------
|
||||
# Example of using header-only library
|
||||
|
Reference in New Issue
Block a user