Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
6222c669
Commit
6222c669
authored
Apr 28, 2016
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PKG: report not found only if not found in any of search dirs
parent
86ff5e26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
SuperBuild/Packaging/PackageHelper.cmake
SuperBuild/Packaging/PackageHelper.cmake
+17
-10
No files found.
SuperBuild/Packaging/PackageHelper.cmake
View file @
6222c669
...
...
@@ -444,23 +444,30 @@ function(configure_package)
message
(
FATAL_ERROR
"
${
OTB_INSTALL_DIR
}
/bin/otbApplicationLauncherCommandLine
${
EXE_EXT
}
not found."
)
endif
()
foreach
(
EXE_FILE
otbApplicationLauncherQt
iceViewer
otbTestDriver
monteverdi
mapla
)
set
(
EXE_FILES
)
list
(
APPEND EXE_FILES
"otbApplicationLauncherQt"
)
list
(
APPEND EXE_FILES
"iceViewer"
)
list
(
APPEND EXE_FILES
"otbTestDriver"
)
list
(
APPEND EXE_FILES
"monteverdi"
)
list
(
APPEND EXE_FILES
"mapla"
)
foreach
(
EXE_FILE
${
EXE_FILES
}
)
set
(
FOUND_
${
EXE_FILE
}
FALSE
)
foreach
(
EXE_SEARCH_DIR
${
EXE_SEARCH_DIRS
}
)
if
(
EXISTS
"
${
EXE_SEARCH_DIR
}
/
${
EXE_FILE
}${
EXE_EXT
}
"
)
set
(
FOUND_
${
EXE_FILE
}
TRUE
)
#see the first comment about VAR_IN_PKGSETUP_CONFIGURE
set
(
VAR_IN_PKGSETUP_CONFIGURE
"
${
VAR_IN_PKGSETUP_CONFIGURE
}
bin/
${
EXE_FILE
}${
EXE_EXT
}
"
)
list
(
APPEND PKG_PEFILES
"
${
EXE_SEARCH_DIR
}
/
${
EXE_FILE
}${
EXE_EXT
}
"
)
else
()
message
(
STATUS
"'
${
OTB_INSTALL_DIR
}
/bin/
${
EXE_FILE
}${
EXE_EXT
}
'(not found. skipping)"
)
endif
()
endforeach
()
#EXE_SEARCH_DIR
endforeach
()
#EXE_SEARCH_DIR
endforeach
()
#loop again to report if anything is not found
foreach
(
EXE_FILE
${
EXE_FILES
}
)
if
(
NOT FOUND_
${
EXE_FILE
}
)
message
(
STATUS
"'
${
OTB_INSTALL_DIR
}
/bin/
${
EXE_FILE
}${
EXE_EXT
}
'(not found. skipping)"
)
endif
()
endforeach
()
#For Unixes we write the startup script in the *pkgsetup.in
...
...
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