mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
cmNonempty: Convenience inlines to check for non-empty string
This commit is contained in:
@@ -680,7 +680,7 @@ bool HandleTargetsMode(std::vector<std::string> const& args,
|
||||
|
||||
if (createInstallGeneratorsForTargetFileSets && !namelinkOnly) {
|
||||
cmProp files = target.GetProperty("PRIVATE_HEADER");
|
||||
if (files && !files->empty()) {
|
||||
if (cmNonempty(files)) {
|
||||
std::vector<std::string> relFiles = cmExpandedList(*files);
|
||||
std::vector<std::string> absFiles;
|
||||
if (!helper.MakeFilesFullPath("PRIVATE_HEADER", relFiles, absFiles)) {
|
||||
@@ -702,7 +702,7 @@ bool HandleTargetsMode(std::vector<std::string> const& args,
|
||||
}
|
||||
|
||||
files = target.GetProperty("PUBLIC_HEADER");
|
||||
if (files && !files->empty()) {
|
||||
if (cmNonempty(files)) {
|
||||
std::vector<std::string> relFiles = cmExpandedList(*files);
|
||||
std::vector<std::string> absFiles;
|
||||
if (!helper.MakeFilesFullPath("PUBLIC_HEADER", relFiles, absFiles)) {
|
||||
@@ -724,7 +724,7 @@ bool HandleTargetsMode(std::vector<std::string> const& args,
|
||||
}
|
||||
|
||||
files = target.GetProperty("RESOURCE");
|
||||
if (files && !files->empty()) {
|
||||
if (cmNonempty(files)) {
|
||||
std::vector<std::string> relFiles = cmExpandedList(*files);
|
||||
std::vector<std::string> absFiles;
|
||||
if (!helper.MakeFilesFullPath("RESOURCE", relFiles, absFiles)) {
|
||||
|
||||
Reference in New Issue
Block a user