Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
e27fcb2a
Commit
e27fcb2a
authored
May 31, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print version information before doing anything else in cmake.
parent
bf815eea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
CMakeLists.txt
dlib/CMakeLists.txt
+11
-8
No files found.
dlib/CMakeLists.txt
View file @
e27fcb2a
...
...
@@ -7,6 +7,17 @@
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
dlib
)
set
(
CPACK_PACKAGE_NAME
"dlib"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"19"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"13"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"99"
)
set
(
VERSION
${
CPACK_PACKAGE_VERSION_MAJOR
}
.
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
)
# Only print these messages once, even if dlib is added multiple times via add_subdirectory()
if
(
NOT TARGET dlib
)
message
(
STATUS
"Using CMake version:
${
CMAKE_VERSION
}
"
)
message
(
STATUS
"Compiling dlib version:
${
VERSION
}
"
)
endif
()
include
(
cmake_utils/set_compiler_specific_options.cmake
)
...
...
@@ -24,12 +35,6 @@ endif()
include
(
cmake_utils/release_build_by_default
)
include
(
cmake_utils/use_cpp_11.cmake
)
set
(
CPACK_PACKAGE_NAME
"dlib"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"19"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"13"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"99"
)
set
(
VERSION
${
CPACK_PACKAGE_VERSION_MAJOR
}
.
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
)
# Set DLIB_VERSION in the including CMake file so they can use it to do whatever they want.
get_directory_property
(
has_parent PARENT_DIRECTORY
)
if
(
has_parent
)
...
...
@@ -122,8 +127,6 @@ endif()
# once. This most often happens when the top level of a project depends on two
# or more other things which both depend on dlib.
if
(
NOT TARGET dlib
)
message
(
STATUS
"Using CMake version:
${
CMAKE_VERSION
}
"
)
message
(
STATUS
"Compiling dlib version:
${
VERSION
}
"
)
set
(
DLIB_ISO_CPP_ONLY_STR
"Enable this if you don't want to compile any non-ISO C++ code (i.e. you don't use any of the API Wrappers)"
)
...
...
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