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
15d9e853
Commit
15d9e853
authored
Dec 23, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made cmake include the visual studio runtime version in the name of the output .lib file
when building dlib in visual studio.
parent
ced9f6f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
dlib/CMakeLists.txt
+14
-0
No files found.
dlib/CMakeLists.txt
View file @
15d9e853
...
@@ -809,4 +809,18 @@ if (NOT TARGET dlib)
...
@@ -809,4 +809,18 @@ if (NOT TARGET dlib)
endif
()
endif
()
if
(
MSVC
)
# Give the output library files names that are unique functions of the
# visual studio mode that compiled them. We do this so that people who
# compile dlib and then copy the .lib files around (which they shouldn't be
# doing in the first place!) will hopefully be slightly less confused by
# what happens since, at the very least, the filenames will indicate what
# visual studio runtime they go with.
math
(
EXPR numbits
${
CMAKE_SIZEOF_VOID_P
}
*8
)
set_target_properties
(
dlib PROPERTIES DEBUG_POSTFIX
"_debug_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
set_target_properties
(
dlib PROPERTIES RELEASE_POSTFIX
"_release_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
set_target_properties
(
dlib PROPERTIES MINSIZEREL_POSTFIX
"_minsizerel_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
set_target_properties
(
dlib PROPERTIES RELWITHDEBINFO_POSTFIX
"_relwithdebinfo_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
endif
()
add_library
(
dlib::dlib ALIAS dlib
)
add_library
(
dlib::dlib ALIAS dlib
)
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