Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
opencv
Commits
87710460
Commit
87710460
authored
Jun 30, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed version suffixes for Windows
parent
b4c46883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
CMakeLists.txt
CMakeLists.txt
+10
-13
No files found.
CMakeLists.txt
View file @
87710460
...
...
@@ -73,6 +73,11 @@ if(COMMAND cmake_policy)
cmake_policy
(
SET CMP0003 NEW
)
endif
()
# ----------------------------------------------------------------------------
# Build static or dynamic libs?
# Default: dynamic libraries:
# ----------------------------------------------------------------------------
set
(
BUILD_SHARED_LIBS ON CACHE BOOL
"Build shared libraries (.dll/.so) instead of static ones (.lib/.a)"
)
# ----------------------------------------------------------------------------
# Current version number:
...
...
@@ -94,21 +99,21 @@ if(WIN32)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
_mingw"
)
endif
()
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual
.
*"
)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
_vs"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 8 2005*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 8 2005
.
*"
)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
2005"
)
endif
()
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 9 2008*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 9 2008
.
*"
)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
2008"
)
endif
()
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 10.
0
*"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio 10.*"
)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
2010"
)
endif
()
endif
()
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio
*
64"
)
if
(
${
CMAKE_GENERATOR
}
MATCHES
"Visual Studio
.*Win
64"
)
set
(
OPENCV_DLL_VERSION_SUFFIX
"
${
OPENCV_DLL_VERSION_SUFFIX
}
_64"
)
endif
()
...
...
@@ -120,18 +125,10 @@ if(WIN32)
set
(
OPENCV_DEBUG_POSTFIX d
)
else
()
# Postfix of so's:
#set(OPENCV_DLLVERSION "${OPENCV_VERSION_MAJOR}${OPENCV_VERSION_MINOR}${OPENCV_VERSION_PATCH}")
set
(
OPENCV_DLLVERSION
""
)
set
(
OPENCV_DEBUG_POSTFIX
)
endif
()
# ----------------------------------------------------------------------------
# Build static or dynamic libs?
# Default: dynamic libraries:
# ----------------------------------------------------------------------------
set
(
BUILD_SHARED_LIBS ON CACHE BOOL
"Build shared libraries (.dll/.so) instead of static ones (.lib/.a)"
)
# ----------------------------------------------------------------------------
# Use statically or dynamically linked CRT?
# Default: dynamic
...
...
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