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
188cff7d
Unverified
Commit
188cff7d
authored
Sep 12, 2018
by
Gabi Melman
Committed by
GitHub
Sep 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #831 from taketwo/fix-830
Change the default value for SPDLOG_BUILD_xxx
parents
f2ac7d73
75925762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
CMakeLists.txt
CMakeLists.txt
+9
-3
No files found.
CMakeLists.txt
View file @
188cff7d
...
@@ -45,11 +45,17 @@ include(cmake/sanitizers.cmake)
...
@@ -45,11 +45,17 @@ include(cmake/sanitizers.cmake)
add_library
(
spdlog INTERFACE
)
add_library
(
spdlog INTERFACE
)
add_library
(
spdlog::spdlog ALIAS spdlog
)
add_library
(
spdlog::spdlog ALIAS spdlog
)
option
(
SPDLOG_BUILD_EXAMPLES
"Build examples"
ON
)
# Check if spdlog is being used directly or via add_subdirectory
option
(
SPDLOG_BUILD_BENCH
"Build benchmarks"
ON
)
set
(
SPDLOG_MASTER_PROJECT OFF
)
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR
)
set
(
SPDLOG_MASTER_PROJECT ON
)
endif
()
option
(
SPDLOG_BUILD_EXAMPLES
"Build examples"
${
SPDLOG_MASTER_PROJECT
}
)
option
(
SPDLOG_BUILD_BENCH
"Build benchmarks"
${
SPDLOG_MASTER_PROJECT
}
)
cmake_dependent_option
(
SPDLOG_BUILD_TESTING
cmake_dependent_option
(
SPDLOG_BUILD_TESTING
"Build spdlog tests"
ON
"Build spdlog tests"
${
SPDLOG_MASTER_PROJECT
}
"BUILD_TESTING"
OFF
"BUILD_TESTING"
OFF
)
)
...
...
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