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
65576707
Commit
65576707
authored
May 23, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed shared_lib option (not supported by windwos) and remove example and test from default build
parent
6ec8a06a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
CMakeLists.txt
CMakeLists.txt
+3
-13
No files found.
CMakeLists.txt
View file @
65576707
...
...
@@ -31,16 +31,11 @@ else()
endif
()
endif
()
if
(
NOT WIN32
)
#spdlog does not yet contain __declspec( dllexport ) under windows.
option
(
BUILD_SHARED_LIBS
"Build as shared library"
OFF
)
endif
()
option
(
SPDLOG_FMT_EXTERNAL
"Use external fmt library instead of bundled"
OFF
)
option
(
SPDLOG_BUILD_EXAMPLES
"Build examples"
${
SPDLOG_MASTER_PROJECT
}
)
option
(
SPDLOG_BUILD_EXAMPLES
"Build examples"
OFF
)
option
(
SPDLOG_BUILD_BENCH
"Build benchmarks (Requires https://github.com/google/benchmark.git to be installed)"
OFF
)
option
(
SPDLOG_BUILD_TESTS
"Build tests"
${
SPDLOG_MASTER_PROJECT
}
)
option
(
SPDLOG_BUILD_TESTS
"Build tests"
OFF
)
option
(
SPDLOG_INSTALL
"Generate the install target."
${
SPDLOG_MASTER_PROJECT
}
)
option
(
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
"Disable registration of CMake's build directory."
ON
)
message
(
STATUS
"Build type: "
${
CMAKE_BUILD_TYPE
}
)
...
...
@@ -58,7 +53,7 @@ endif()
#---------------------------------------------------------------------------------------
# Static library version
#---------------------------------------------------------------------------------------
add_library
(
spdlog src/spdlog.cpp
)
add_library
(
spdlog
STATIC
src/spdlog.cpp
)
target_compile_definitions
(
spdlog PUBLIC SPDLOG_COMPILED_LIB
)
target_include_directories
(
spdlog PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
...
...
@@ -149,10 +144,5 @@ if (SPDLOG_INSTALL)
#---------------------------------------------------------------------------------------
include
(
cmake/SpdlogCPack.cmake
)
#---------------------------------------------------------------------------------------
# register project in CMake user registry - disabled by default since the
# installed/packaged version of the project is preferred.
#---------------------------------------------------------------------------------------
export
(
PACKAGE spdlog
)
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