Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
79065922
Unverified
Commit
79065922
authored
Apr 01, 2020
by
Gabi Melman
Committed by
GitHub
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1499
parent
f57378d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
example/CMakeLists.txt
example/CMakeLists.txt
+2
-6
No files found.
example/CMakeLists.txt
View file @
79065922
# Copyright(c) 2019 spdlog authors
# Distributed under the MIT License (http://opensource.org/licenses/MIT)
cmake_minimum_required
(
VERSION 3.
1
)
cmake_minimum_required
(
VERSION 3.
2
)
project
(
spdlog_examples CXX
)
include
(
../cmake/utils.cmake
)
if
(
NOT TARGET spdlog
)
# Stand-alone build
find_package
(
spdlog REQUIRED
)
...
...
@@ -15,15 +13,13 @@ endif()
# Example of using pre-compiled library
#---------------------------------------------------------------------------------------
add_executable
(
example example.cpp
)
spdlog_enable_warnings
(
example
)
target_link_libraries
(
example PRIVATE spdlog::spdlog
)
#---------------------------------------------------------------------------------------
# Example of using header-only library
#---------------------------------------------------------------------------------------
if
(
SPDLOG_BUILD_EXAMPLE_HO
)
add_executable
(
example_header_only example.cpp
)
spdlog_enable_warnings
(
example_header_only
)
add_executable
(
example_header_only example.cpp
)
target_link_libraries
(
example_header_only PRIVATE spdlog::spdlog_header_only
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment