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
8cc0997f
Commit
8cc0997f
authored
Aug 09, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SPDLOG_WCHAR_SUPPORT options to CMake under windows
parent
ffb7c317
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
CMakeLists.txt
CMakeLists.txt
+11
-0
No files found.
CMakeLists.txt
View file @
8cc0997f
...
@@ -59,6 +59,11 @@ option(SPDLOG_SANITIZE_ADDRESS "Enable address sanitizer in tests" OFF)
...
@@ -59,6 +59,11 @@ option(SPDLOG_SANITIZE_ADDRESS "Enable address sanitizer in tests" OFF)
option
(
SPDLOG_INSTALL
"Generate the install target."
${
SPDLOG_MASTER_PROJECT
}
)
option
(
SPDLOG_INSTALL
"Generate the install target."
${
SPDLOG_MASTER_PROJECT
}
)
option
(
SPDLOG_FMT_EXTERNAL
"Use external fmt library instead of bundled"
OFF
)
option
(
SPDLOG_FMT_EXTERNAL
"Use external fmt library instead of bundled"
OFF
)
if
(
WIN32
)
option
(
SPDLOG_WCHAR_SUPPORT
"Support wchar api"
OFF
)
endif
()
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
message
(
STATUS
"Build type: "
${
CMAKE_BUILD_TYPE
}
)
message
(
STATUS
"Build type: "
${
CMAKE_BUILD_TYPE
}
)
...
@@ -109,6 +114,12 @@ if(SPDLOG_FMT_EXTERNAL)
...
@@ -109,6 +114,12 @@ if(SPDLOG_FMT_EXTERNAL)
target_link_libraries
(
spdlog_header_only INTERFACE fmt::fmt
)
target_link_libraries
(
spdlog_header_only INTERFACE fmt::fmt
)
endif
()
endif
()
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
()
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
# Build binaries
# Build binaries
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
...
...
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