Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2,684
Issues
2,684
List
Boards
Labels
Milestones
Merge Requests
20
Merge Requests
20
Packages
Packages
Container Registry
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
749a140a
Commit
749a140a
authored
Sep 28, 2015
by
Raffi Enficiaud
Committed by
Domen Vrankar
Sep 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPackDeb: allow empty directories in component packages
parent
6c6a8c5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Source/CPack/cmCPackDebGenerator.cxx
Source/CPack/cmCPackDebGenerator.cxx
+2
-0
Tests/CPackComponentsDEB/CMakeLists.txt
Tests/CPackComponentsDEB/CMakeLists.txt
+1
-2
No files found.
Source/CPack/cmCPackDebGenerator.cxx
View file @
749a140a
...
...
@@ -95,6 +95,7 @@ int cmCPackDebGenerator::PackageOnePack(std::string initialTopLevel,
std
::
string
findExpr
(
this
->
GetOption
(
"GEN_WDIR"
));
findExpr
+=
"/*"
;
gl
.
RecurseOn
();
gl
.
SetRecurseListDirs
(
true
);
if
(
!
gl
.
FindFiles
(
findExpr
)
)
{
cmCPackLogger
(
cmCPackLog
::
LOG_ERROR
,
...
...
@@ -222,6 +223,7 @@ int cmCPackDebGenerator::PackageComponentsAllInOne()
std
::
string
findExpr
(
this
->
GetOption
(
"GEN_WDIR"
));
findExpr
+=
"/*"
;
gl
.
RecurseOn
();
gl
.
SetRecurseListDirs
(
true
);
if
(
!
gl
.
FindFiles
(
findExpr
)
)
{
cmCPackLogger
(
cmCPackLog
::
LOG_ERROR
,
...
...
Tests/CPackComponentsDEB/CMakeLists.txt
View file @
749a140a
...
...
@@ -110,9 +110,8 @@ install(FILES ${CPackComponentsDEB_BINARY_DIR}/symtest
if
(
EXISTS
"./dirtest"
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E remove_directory ./dirtest
)
endif
()
# NOTE: directory left empty on purpose
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E make_directory ./dirtest
)
# BUG: apparently cannot add an empty directory
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink ../mylibapp ./dirtest/symtest
)
# NOTE: we should not add the trailing "/" to dirtest
install
(
DIRECTORY
${
CPackComponentsDEB_BINARY_DIR
}
/dirtest
DESTINATION bin/
...
...
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