Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
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
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)
add_library
(
spdlog INTERFACE
)
add_library
(
spdlog::spdlog ALIAS spdlog
)
option
(
SPDLOG_BUILD_EXAMPLES
"Build examples"
ON
)
option
(
SPDLOG_BUILD_BENCH
"Build benchmarks"
ON
)
# Check if spdlog is being used directly or via add_subdirectory
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
"Build spdlog tests"
ON
"Build spdlog tests"
${
SPDLOG_MASTER_PROJECT
}
"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