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
02802af9
Commit
02802af9
authored
Apr 10, 2020
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed SPDLOG_ENABLE_WARNINGS to SPDLOG_BUILD_WARNINGS
parent
a8169a3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
CMakeLists.txt
CMakeLists.txt
+4
-4
cmake/utils.cmake
cmake/utils.cmake
+2
-2
No files found.
CMakeLists.txt
View file @
02802af9
...
...
@@ -80,7 +80,7 @@ option(SPDLOG_BUILD_BENCH "Build benchmarks (Requires https://github.com/google/
option
(
SPDLOG_SANITIZE_ADDRESS
"Enable address sanitizer in tests"
OFF
)
# warning options
option
(
SPDLOG_
ENABLE
_WARNINGS
"Enable compiler warnings"
OFF
)
option
(
SPDLOG_
BUILD
_WARNINGS
"Enable compiler warnings"
OFF
)
# install options
option
(
SPDLOG_INSTALL
"Generate the install target"
${
SPDLOG_MASTER_PROJECT
}
)
...
...
@@ -159,7 +159,7 @@ target_include_directories(spdlog PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
"$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>"
)
target_link_libraries
(
spdlog PUBLIC Threads::Threads
)
spdlog_enable_warnings
(
spdlog
)
SPDLOG_BUILD_WARNINGS
(
spdlog
)
set_target_properties
(
spdlog PROPERTIES VERSION
${
SPDLOG_VERSION
}
SOVERSION
${
SPDLOG_VERSION_MAJOR
}
)
set_target_properties
(
spdlog PROPERTIES DEBUG_POSTFIX d
)
...
...
@@ -258,9 +258,9 @@ endif()
if
(
SPDLOG_BUILD_EXAMPLE OR SPDLOG_BUILD_EXAMPLE_HO
)
message
(
STATUS
"Generating example(s)"
)
add_subdirectory
(
example
)
spdlog_enable_warnings
(
example
)
SPDLOG_BUILD_WARNINGS
(
example
)
if
(
SPDLOG_BUILD_EXAMPLE_HO
)
spdlog_enable_warnings
(
example_header_only
)
SPDLOG_BUILD_WARNINGS
(
example_header_only
)
endif
()
endif
()
...
...
cmake/utils.cmake
View file @
02802af9
...
...
@@ -27,8 +27,8 @@ endfunction()
# Turn on warnings on the given target
function
(
spdlog_enable_warnings
target_name
)
if
(
SPDLOG_
ENABLE
_WARNINGS
)
function
(
SPDLOG_BUILD_WARNINGS
target_name
)
if
(
SPDLOG_
BUILD
_WARNINGS
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"MSVC"
)
list
(
APPEND MSVC_OPTIONS
"/W3"
)
if
(
MSVC_VERSION GREATER 1900
)
#Allow non fatal security wanrnings for msvc 2015
...
...
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