Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
fmt
Commits
48e8d0eb
Commit
48e8d0eb
authored
Mar 07, 2020
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set_doc -> set_verbose
parent
ce009791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
CMakeLists.txt
CMakeLists.txt
+21
-21
No files found.
CMakeLists.txt
View file @
48e8d0eb
...
...
@@ -27,21 +27,21 @@ endfunction()
# Sets a cache variable with a docstring joined from multiple arguments:
# set(<variable> <value>... CACHE <type> <docstring>...)
# This allows splitting a long docstring for readability.
function
(
set_
doc
)
cmake_parse_arguments
(
SET_
DOC
""
""
"CACHE"
${
ARGN
}
)
list
(
GET SET_
DOC
_CACHE 0 type
)
list
(
REMOVE_AT SET_
DOC
_CACHE 0
)
join
(
doc
${
SET_
DOC
_CACHE
}
)
set
(
${
SET_
DOC
_UNPARSED_ARGUMENTS
}
CACHE
${
type
}
${
doc
}
)
function
(
set_
verbose
)
cmake_parse_arguments
(
SET_
VERBOSE
""
""
"CACHE"
${
ARGN
}
)
list
(
GET SET_
VERBOSE
_CACHE 0 type
)
list
(
REMOVE_AT SET_
VERBOSE
_CACHE 0
)
join
(
doc
${
SET_
VERBOSE
_CACHE
}
)
set
(
${
SET_
VERBOSE
_UNPARSED_ARGUMENTS
}
CACHE
${
type
}
${
doc
}
)
endfunction
()
# Set the default CMAKE_BUILD_TYPE to Release.
# This should be done before the project command since the latter can set
# CMAKE_BUILD_TYPE itself (it does so for nmake).
if
(
MASTER_PROJECT AND NOT CMAKE_BUILD_TYPE
)
set_
doc
(
CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
)
set_
verbose
(
CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
)
endif
()
option
(
FMT_PEDANTIC
"Enable extra warnings and expensive tests."
OFF
)
...
...
@@ -233,9 +233,9 @@ target_include_directories(fmt-header-only INTERFACE
if
(
FMT_INSTALL
)
include
(
GNUInstallDirs
)
include
(
CMakePackageConfigHelpers
)
set_
doc
(
FMT_CMAKE_DIR
${
CMAKE_INSTALL_LIBDIR
}
/cmake/fmt CACHE STRING
"Installation directory for cmake files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
verbose
(
FMT_CMAKE_DIR
${
CMAKE_INSTALL_LIBDIR
}
/cmake/fmt CACHE STRING
"Installation directory for cmake files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set
(
version_config
${
PROJECT_BINARY_DIR
}
/fmt-config-version.cmake
)
set
(
project_config
${
PROJECT_BINARY_DIR
}
/fmt-config.cmake
)
set
(
pkgconfig
${
PROJECT_BINARY_DIR
}
/fmt.pc
)
...
...
@@ -246,17 +246,17 @@ if (FMT_INSTALL)
set
(
INSTALL_TARGETS
${
INSTALL_TARGETS
}
fmt-header-only
)
endif
()
set_
doc
(
FMT_LIB_DIR
${
CMAKE_INSTALL_LIBDIR
}
CACHE STRING
"Installation directory for libraries, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
verbose
(
FMT_LIB_DIR
${
CMAKE_INSTALL_LIBDIR
}
CACHE STRING
"Installation directory for libraries, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
doc
(
FMT_INC_DIR
${
CMAKE_INSTALL_INCLUDEDIR
}
/fmt CACHE STRINGS
"Installation directory for include files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
verbose
(
FMT_INC_DIR
${
CMAKE_INSTALL_INCLUDEDIR
}
/fmt CACHE STRINGS
"Installation directory for include files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
doc
(
FMT_PKGCONFIG_DIR
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig CACHE PATH
"Installation directory for pkgconfig (.pc) files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
set_
verbose
(
FMT_PKGCONFIG_DIR
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig CACHE PATH
"Installation directory for pkgconfig (.pc) files, relative to "
"
${
CMAKE_INSTALL_PREFIX
}
."
)
# Generate the version, config and target files into the build directory.
write_basic_package_version_file
(
...
...
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