Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
93b0c92e
Commit
93b0c92e
authored
May 06, 2014
by
COULAUD Olivier
Browse files
Fix bug in package name
parent
80e346f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
93b0c92e
...
...
@@ -305,25 +305,27 @@ INSTALL(FILES
# ----------------
#
# build a CPack driven installer package
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/Licence.txt"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
ScalFMM_MAJOR_VERSION
}
"
)
SET
(
CPACK_PACKAGE_VERSION_NINOR
"
${
ScalFMM_MINOR_VERSION
}
"
)
#
# Use git commit number as CPACK_PACKAGE_VERSION_PATCH
execute_process
(
COMMAND git rev-list HEAD --count
OUTPUT_VARIABLE CPACK_PACKAGE_VERSION_PATCH
RESULT_VARIABLE RET
ERROR_QUIET
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# STRING_TRIM(PATCH1 PATCH)
SET
(
CPACK_INCLUDE_TOPLEVEL_DIRECTORY
"ON"
)
#
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/Licence.txt"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
ScalFMM_MAJOR_VERSION
}
"
)
SET
(
CPACK_PACKAGE_VERSION_NINOR
"
${
ScalFMM_MINOR_VERSION
}
"
)
#
SET
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
SET
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"ScalFMM-
${
ScalFMM_VERSION
}
"
)
SET
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"ScalFMM-
${
ScalFMM_
MAJOR_
VERSION
}
.
${
ScalFMM_MINOR_VERSION
}
-
${
CPACK_PACKAGE_VERSION_PATCH
}
"
)
SET
(
CPACK_SOURCE_IGNORE_FILES
"
\\\\
.git;.DS_Store;.*~;/*.aux;/*.idx;/*.log;/*.out;/*.toc;/*.ilg;/*.ind;scalfmm.pro*;org.eclipse.core.resources.prefs;.cproject;.project"
)
LIST
(
APPEND CPACK_SOURCE_IGNORE_FILES
"
${
CMAKE_BINARY_DIR
}
;
${
CMAKE_SOURCE_DIR
}
/Utils/;Notes;Deprecated;Build*"
)
message
(
"CPACK_SOURCE_IGNORE_FILES =
${
CPACK_SOURCE_IGNORE_FILES
}
"
)
message
(
"CPACK_SOURCE_PACKAGE_FILE_NAME =
${
CPACK_SOURCE_PACKAGE_FILE_NAME
}
"
)
#
INCLUDE
(
CPack
)
#
...
...
Write
Preview
Supports
Markdown
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