Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Julien Cabieces
otb
Commits
d4d3f745
Commit
d4d3f745
authored
8 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
PKG: rerun make in binary directory to ensure build is okay
parent
ec0c1c9d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SuperBuild/CMake/External_pkgtools.cmake
+1
-1
1 addition, 1 deletion
SuperBuild/CMake/External_pkgtools.cmake
SuperBuild/Packaging/PMacros.cmake
+20
-15
20 additions, 15 deletions
SuperBuild/Packaging/PMacros.cmake
with
21 additions
and
16 deletions
SuperBuild/CMake/External_pkgtools.cmake
+
1
−
1
View file @
d4d3f745
...
...
@@ -7,7 +7,7 @@ include(ExternalProject)
if
(
NOT __EXTERNAL_PACKAGE_TOOLS__
)
set
(
__EXTERNAL_PACKAGE_TOOLS__ 1
)
set
(
PKGTOOLS_SB_PREFIX_DIR
"
${
CMAKE_BINARY_DIR
}
/
TOOLS-
PACKAGE"
)
set
(
PKGTOOLS_SB_PREFIX_DIR
"
${
CMAKE_BINARY_DIR
}
/PACKAGE
-TOOLS
"
)
if
(
UNIX
)
if
(
APPLE
)
...
...
This diff is collapsed.
Click to expand it.
SuperBuild/Packaging/PMacros.cmake
+
20
−
15
View file @
d4d3f745
...
...
@@ -39,25 +39,29 @@ macro(macro_setup_cmake_sources pkg)
endmacro
()
macro
(
macro_update_dependencies_list list_variable
)
add_custom_target
(
REMAKE
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
SUPERBUILD_BINARY_DIR
}
"
WORKING_DIRECTORY
"
${
SUPERBUILD_BINARY_DIR
}
"
)
if
(
WIN32 OR CMAKE_CROSSCOMPILING
)
add_custom_target
(
PACKAGE-check
)
else
()
#Unxies Using SuperBuild
if
(
OUT_OF_SOURCE_BUILD
)
if
(
ENABLE_MONTEVERDI
)
add_custom_target
(
PACKAGE-check
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
SUPERBUILD_BINARY_DIR
}
/MVD/build"
WORKING_DIRECTORY
"
${
SUPERBUILD_BINARY_DIR
}
/MVD/build"
)
else
()
add_custom_target
(
PACKAGE-check
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
WORKING_DIRECTORY
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
)
endif
(
ENABLE_MONTEVERDI
)
else
(
OUT_OF_SOURCE_BUILD
)
add_custom_target
(
PACKAGE-check
)
endif
(
OUT_OF_SOURCE_BUILD
)
if
(
ENABLE_MONTEVERDI
)
add_custom_target
(
PACKAGE-check
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
SUPERBUILD_BINARY_DIR
}
/MVD/build"
WORKING_DIRECTORY
"
${
SUPERBUILD_BINARY_DIR
}
/MVD/build"
DEPENDS REMAKE
)
else
()
add_custom_target
(
PACKAGE-check
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
WORKING_DIRECTORY
"
${
SUPERBUILD_BINARY_DIR
}
/OTB/build"
DEPENDS REMAKE
)
endif
(
ENABLE_MONTEVERDI
)
endif
()
list
(
APPEND
${
list_variable
}
PACKAGE-check
)
endmacro
()
...
...
@@ -82,6 +86,7 @@ macro(macro_create_targets_for_package pkg)
# creation of package is different from windows and unix like
if
(
WIN32 OR CMAKE_CROSSCOMPILING
)
add_custom_target
(
PACKAGE-
${
pkg
}
ALL DEPENDS
COMMAND
${
ZIP_EXECUTABLE
}
"-r"
"
${
CMAKE_BINARY_DIR
}
/
${
ARCHIVE_NAME
}
.zip"
"
${
CMAKE_INSTALL_PREFIX
}
/
${
ARCHIVE_NAME
}
"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
...
...
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