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
cf55e5d4
Commit
cf55e5d4
authored
Jun 12, 2020
by
Leonid Pospelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup options-related lines in CMakeLists.txt
parent
1a1ea028
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
41 deletions
+17
-41
CMakeLists.txt
CMakeLists.txt
+17
-41
No files found.
CMakeLists.txt
View file @
cf55e5d4
...
...
@@ -199,49 +199,25 @@ endif()
# ---------------------------------------------------------------------------------------
# Misc definitions according to tweak options
# ---------------------------------------------------------------------------------------
if
(
SPDLOG_WCHAR_SUPPORT
)
target_compile_definitions
(
spdlog PUBLIC SPDLOG_WCHAR_TO_UTF8_SUPPORT
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_WCHAR_TO_UTF8_SUPPORT
)
endif
()
if
(
SPDLOG_WCHAR_FILENAMES
)
target_compile_definitions
(
spdlog PUBLIC SPDLOG_WCHAR_FILENAMES
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_WCHAR_FILENAMES
)
endif
()
if
(
SPDLOG_NO_EXCEPTIONS
)
target_compile_definitions
(
spdlog PUBLIC SPDLOG_NO_EXCEPTIONS
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_NO_EXCEPTIONS
)
if
(
NOT MSVC
)
target_compile_options
(
spdlog PRIVATE -fno-exceptions
)
set
(
SPDLOG_WCHAR_TO_UTF8_SUPPORT
${
SPDLOG_WCHAR_SUPPORT
}
)
foreach
(
SPDLOG_OPTION
SPDLOG_WCHAR_TO_UTF8_SUPPORT
SPDLOG_WCHAR_FILENAMES
SPDLOG_NO_EXCEPTIONS
SPDLOG_CLOCK_COARSE
SPDLOG_PREVENT_CHILD_FD
SPDLOG_NO_THREAD_ID
SPDLOG_NO_TLS
SPDLOG_NO_ATOMIC_LEVELS
)
if
(
${
SPDLOG_OPTION
}
)
target_compile_definitions
(
spdlog PUBLIC
${
SPDLOG_OPTION
}
)
target_compile_definitions
(
spdlog_header_only INTERFACE
${
SPDLOG_OPTION
}
)
endif
()
end
if
()
end
foreach
()
if
(
SPDLOG_CLOCK_COARSE
)
target_compile_definitions
(
spdlog PRIVATE SPDLOG_CLOCK_COARSE
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_CLOCK_COARSE
)
endif
()
if
(
SPDLOG_PREVENT_CHILD_FD
)
target_compile_definitions
(
spdlog PRIVATE SPDLOG_PREVENT_CHILD_FD
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_PREVENT_CHILD_FD
)
endif
()
if
(
SPDLOG_NO_THREAD_ID
)
target_compile_definitions
(
spdlog PRIVATE SPDLOG_NO_THREAD_ID
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_NO_THREAD_ID
)
endif
()
if
(
SPDLOG_NO_TLS
)
target_compile_definitions
(
spdlog PRIVATE SPDLOG_NO_TLS
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_NO_TLS
)
endif
()
if
(
SPDLOG_NO_ATOMIC_LEVELS
)
target_compile_definitions
(
spdlog PUBLIC SPDLOG_NO_ATOMIC_LEVELS
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_NO_ATOMIC_LEVELS
)
if
(
SPDLOG_NO_EXCEPTIONS AND NOT MSVC
)
target_compile_options
(
spdlog PRIVATE -fno-exceptions
)
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