Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
74a315ea
Commit
74a315ea
authored
8 years ago
by
Savici, Andrei T.
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17568 from mantidproject/poco-deb-package-version
Fix package version for Poco on Ubuntu
parents
f9c5ce7e
0a72abe8
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
buildconfig/CMake/FindPoco.cmake
+14
-4
14 additions, 4 deletions
buildconfig/CMake/FindPoco.cmake
with
15 additions
and
5 deletions
CMakeLists.txt
+
1
−
1
View file @
74a315ea
...
...
@@ -319,7 +319,7 @@ if ( ENABLE_CPACK )
"python-matplotlib,"
"python-scipy,"
"libtbb2,"
"libpocofoundation
31,libpocoutil31,libpoconet31,libpoconetssl31,libpococrypto31,libpocoxml31
,"
"libpocofoundation
${
POCO_SOLIB_VERSION
}
,libpocoutil
${
POCO_SOLIB_VERSION
}
,libpoconet
${
POCO_SOLIB_VERSION
}
,libpoconetssl
${
POCO_SOLIB_VERSION
}
,libpococrypto
${
POCO_SOLIB_VERSION
}
,libpocoxml
${
POCO_SOLIB_VERSION
}
,"
"python-pycifrw (>= 4.2.1)"
)
set
(
PERFTOOLS_DEB_PACKAGE
"libgoogle-perftools4 (>= 1.7)"
)
if
(
"
${
UNIX_CODENAME
}
"
STREQUAL
"xenial"
)
...
...
This diff is collapsed.
Click to expand it.
buildconfig/CMake/FindPoco.cmake
+
14
−
4
View file @
74a315ea
...
...
@@ -47,9 +47,9 @@ set ( POCO_LIBRARIES ${POCO_LIB_FOUNDATION}
endif
()
# Set a version string by examining either the Poco/Version.h header or
# Set a version string by examining either the Poco/Version.h header or
# the Poco/Foundation.h header if Version.h does not exist
if
(
POCO_INCLUDE_DIR
)
if
(
POCO_INCLUDE_DIR
)
if
(
EXISTS
${
POCO_INCLUDE_DIR
}
/Poco/Version.h
)
set
(
VERSION_FILE
${
POCO_INCLUDE_DIR
}
/Poco/Version.h
)
else
()
...
...
@@ -72,12 +72,22 @@ if( POCO_INCLUDE_DIR )
set
(
POCO_VERSION
"
${
POCO_VERSION_MAJOR
}
.
${
POCO_VERSION_MINOR
}
.
${
POCO_VERSION_PATCH
}
"
)
endif
()
# Also set a shared libarary version number. This is different to the main version number
# and can form part of the package name on some Linux systems
if
(
POCO_LIB_FOUNDATION
)
set
(
POCO_SOLIB_VERSION
""
)
# The library path is usually a symlink to the actually library
get_filename_component
(
POCO_REAL_LIB_FOUNDATION
${
POCO_LIB_FOUNDATION
}
REALPATH
)
set
(
_LIB_REGEX
"^.*.so.([0-9]+)$"
)
string
(
REGEX REPLACE
${
_LIB_REGEX
}
"
\\
1"
POCO_SOLIB_VERSION
${
POCO_REAL_LIB_FOUNDATION
}
)
endif
()
# handle the QUIETLY and REQUIRED arguments and set POCO_FOUND to TRUE if
# handle the QUIETLY and REQUIRED arguments and set POCO_FOUND to TRUE if
# all listed variables are TRUE
include
(
FindPackageHandleStandardArgs
)
if
(
POCO_VERSION
)
find_package_handle_standard_args
(
Poco REQUIRED_VARS POCO_LIBRARIES POCO_INCLUDE_DIR
find_package_handle_standard_args
(
Poco REQUIRED_VARS POCO_LIBRARIES POCO_INCLUDE_DIR
VERSION_VAR POCO_VERSION
)
else
()
message
(
status
"Failed to determine Poco version: Ignoring requirement"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment