summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-12 11:23:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-05-12 11:23:51 (GMT)
commitbfb6873042c6bbec63eedae20619e411abde0aac (patch)
treeeb7ec910f068f4cce2b7e13553519f245aec2fa3
parent1c7c155366f28a56a679379b903a6f035636f0cf (diff)
parent18bd63af416560361b26762f730da5955e67256e (diff)
downloadCMake-bfb6873042c6bbec63eedae20619e411abde0aac.zip
CMake-bfb6873042c6bbec63eedae20619e411abde0aac.tar.gz
CMake-bfb6873042c6bbec63eedae20619e411abde0aac.tar.bz2
Merge topic 'ci-fedora34'
18bd63af41 ci: enable FindProtobuf gRPC test on Linux builds 27adb6c78e gitlab-ci: update Debian base images 89478e643f gitlab-ci: update to Fedora 34 base images 6ff48b862c ci: add gRPC to Debian and Fedora base images 4ad8bfcd9b ci: add codespell to Fedora base image fa261d1b7d ci: add Qt 6 to Fedora base image 82fc490f93 ci: update to Fedora 34 for Linux base images a69e6dba92 gitlab-ci: update to Fedora 34 for upload jobs ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6117
-rw-r--r--.clang-tidy1
-rw-r--r--.gitlab-ci.yml34
-rw-r--r--.gitlab/ci/configure_debian10_aarch64_ninja.cmake1
-rw-r--r--.gitlab/ci/configure_debian10_ninja.cmake1
-rw-r--r--.gitlab/ci/configure_fedora33_tidy.cmake3
-rw-r--r--.gitlab/ci/configure_fedora34_common.cmake (renamed from .gitlab/ci/configure_fedora33_common.cmake)1
-rw-r--r--.gitlab/ci/configure_fedora34_makefiles.cmake (renamed from .gitlab/ci/configure_fedora33_makefiles.cmake)1
-rw-r--r--.gitlab/ci/configure_fedora34_ninja.cmake (renamed from .gitlab/ci/configure_fedora33_ninja.cmake)2
-rw-r--r--.gitlab/ci/configure_fedora34_ninja_multi.cmake (renamed from .gitlab/ci/configure_fedora33_ninja_multi.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora34_sphinx.cmake (renamed from .gitlab/ci/configure_fedora33_sphinx.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora34_sphinx_package.cmake (renamed from .gitlab/ci/configure_fedora33_sphinx_package.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora34_tidy.cmake3
-rwxr-xr-x.gitlab/ci/docker/debian10-aarch64/install_deps.sh3
-rwxr-xr-x.gitlab/ci/docker/debian10/install_deps.sh3
-rw-r--r--.gitlab/ci/docker/fedora34/Dockerfile (renamed from .gitlab/ci/docker/fedora33/Dockerfile)4
-rwxr-xr-x.gitlab/ci/docker/fedora34/install_deps.sh (renamed from .gitlab/ci/docker/fedora33/install_deps.sh)19
-rwxr-xr-x.gitlab/ci/docker/fedora34/install_ispc.sh (renamed from .gitlab/ci/docker/fedora33/install_ispc.sh)0
-rwxr-xr-x.gitlab/ci/docker/fedora34/install_rvm.sh (renamed from .gitlab/ci/docker/fedora33/install_rvm.sh)0
-rw-r--r--.gitlab/ci/env_fedora34_makefiles.cmake (renamed from .gitlab/ci/env_fedora33_makefiles.cmake)0
-rw-r--r--.gitlab/os-linux.yml48
-rw-r--r--.gitlab/upload.yml6
-rw-r--r--Source/CPack/cpack.cxx2
22 files changed, 77 insertions, 55 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 5e513fb..dda86b0 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -19,6 +19,7 @@ modernize-*,\
performance-*,\
readability-*,\
-readability-convert-member-functions-to-static,\
+-readability-function-cognitive-complexity,\
-readability-function-size,\
-readability-identifier-naming,\
-readability-implicit-bool-conversion,\
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f8a22a5..1fc907d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,7 +46,7 @@ prep:source-package:
prep:doc-package:
extends:
- - .fedora33_sphinx_package
+ - .fedora34_sphinx_package
- .cmake_prep_doc_linux
- .linux_builder_tags_qt
- .cmake_doc_artifacts
@@ -106,16 +106,16 @@ build:debian10-iwyu:
- .linux_builder_tags
- .run_automatically
-build:fedora33-tidy:
+build:fedora34-tidy:
extends:
- - .fedora33_tidy
+ - .fedora34_tidy
- .cmake_build_linux
- .linux_builder_tags_qt
- .run_automatically
-build:fedora33-sphinx:
+build:fedora34-sphinx:
extends:
- - .fedora33_sphinx
+ - .fedora34_sphinx
- .cmake_build_linux
- .linux_builder_tags_qt
- .run_automatically
@@ -161,9 +161,9 @@ test:debian10-aarch64-ninja:
variables:
CMAKE_CI_NO_MR: "true"
-test:fedora33-makefiles:
+test:fedora34-makefiles:
extends:
- - .fedora33_makefiles
+ - .fedora34_makefiles
- .cmake_test_linux_release
- .linux_builder_tags_qt
- .run_dependent
@@ -177,36 +177,36 @@ test:cuda10.2-nvidia:
- .run_dependent
- .needs_centos6_x86_64
-build:fedora33-ninja:
+build:fedora34-ninja:
extends:
- - .fedora33_ninja
+ - .fedora34_ninja
- .cmake_build_linux
- .cmake_build_artifacts
- .linux_builder_tags_qt
- .run_manually
-test:fedora33-ninja:
+test:fedora34-ninja:
extends:
- - .fedora33_ninja
+ - .fedora34_ninja
- .cmake_test_linux
- .linux_builder_tags_x11
- .cmake_test_artifacts
- .run_dependent
dependencies:
- - build:fedora33-ninja
+ - build:fedora34-ninja
needs:
- - build:fedora33-ninja
+ - build:fedora34-ninja
-test:fedora33-ninja-multi:
+test:fedora34-ninja-multi:
extends:
- - .fedora33_ninja_multi
+ - .fedora34_ninja_multi
- .cmake_test_linux_external
- .linux_builder_tags_qt
- .run_dependent
dependencies:
- - test:fedora33-ninja
+ - test:fedora34-ninja
needs:
- - test:fedora33-ninja
+ - test:fedora34-ninja
test:intel2016-makefiles:
extends:
diff --git a/.gitlab/ci/configure_debian10_aarch64_ninja.cmake b/.gitlab/ci/configure_debian10_aarch64_ninja.cmake
index 8fc850c..4d8dde6 100644
--- a/.gitlab/ci/configure_debian10_aarch64_ninja.cmake
+++ b/.gitlab/ci/configure_debian10_aarch64_ninja.cmake
@@ -48,6 +48,7 @@ set(CMake_TEST_FindPatch "ON" CACHE BOOL "")
set(CMake_TEST_FindPNG "ON" CACHE BOOL "")
set(CMake_TEST_FindPostgreSQL "ON" CACHE BOOL "")
set(CMake_TEST_FindProtobuf "ON" CACHE BOOL "")
+set(CMake_TEST_FindProtobuf_gRPC "ON" CACHE BOOL "")
set(CMake_TEST_FindPython "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_NumPy "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_PyPy "ON" CACHE BOOL "")
diff --git a/.gitlab/ci/configure_debian10_ninja.cmake b/.gitlab/ci/configure_debian10_ninja.cmake
index 94cf6c1..732624a 100644
--- a/.gitlab/ci/configure_debian10_ninja.cmake
+++ b/.gitlab/ci/configure_debian10_ninja.cmake
@@ -48,6 +48,7 @@ set(CMake_TEST_FindPatch "ON" CACHE BOOL "")
set(CMake_TEST_FindPNG "ON" CACHE BOOL "")
set(CMake_TEST_FindPostgreSQL "ON" CACHE BOOL "")
set(CMake_TEST_FindProtobuf "ON" CACHE BOOL "")
+set(CMake_TEST_FindProtobuf_gRPC "ON" CACHE BOOL "")
set(CMake_TEST_FindPython "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_IronPython "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_NumPy "ON" CACHE BOOL "")
diff --git a/.gitlab/ci/configure_fedora33_tidy.cmake b/.gitlab/ci/configure_fedora33_tidy.cmake
deleted file mode 100644
index 9052fdc..0000000
--- a/.gitlab/ci/configure_fedora33_tidy.cmake
+++ /dev/null
@@ -1,3 +0,0 @@
-set(CMake_RUN_CLANG_TIDY ON CACHE BOOL "")
-
-include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora33_common.cmake")
diff --git a/.gitlab/ci/configure_fedora33_common.cmake b/.gitlab/ci/configure_fedora34_common.cmake
index dee78ab..4484e26 100644
--- a/.gitlab/ci/configure_fedora33_common.cmake
+++ b/.gitlab/ci/configure_fedora34_common.cmake
@@ -1,5 +1,6 @@
set(BUILD_CursesDialog ON CACHE BOOL "")
set(BUILD_QtDialog ON CACHE BOOL "")
+set(CMake_QT_MAJOR_VERSION "5" CACHE STRING "")
set(CMake_TEST_JQ "/usr/bin/jq" CACHE PATH "")
set(CMake_TEST_JSON_SCHEMA ON CACHE BOOL "")
diff --git a/.gitlab/ci/configure_fedora33_makefiles.cmake b/.gitlab/ci/configure_fedora34_makefiles.cmake
index 7519d95..48786e4 100644
--- a/.gitlab/ci/configure_fedora33_makefiles.cmake
+++ b/.gitlab/ci/configure_fedora34_makefiles.cmake
@@ -48,6 +48,7 @@ set(CMake_TEST_FindPatch "ON" CACHE BOOL "")
set(CMake_TEST_FindPNG "ON" CACHE BOOL "")
set(CMake_TEST_FindPostgreSQL "ON" CACHE BOOL "")
set(CMake_TEST_FindProtobuf "ON" CACHE BOOL "")
+set(CMake_TEST_FindProtobuf_gRPC "ON" CACHE BOOL "")
set(CMake_TEST_FindPython "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_NumPy "ON" CACHE BOOL "")
set(CMake_TEST_FindPython_PyPy "ON" CACHE BOOL "")
diff --git a/.gitlab/ci/configure_fedora33_ninja.cmake b/.gitlab/ci/configure_fedora34_ninja.cmake
index 883f425..37bc189 100644
--- a/.gitlab/ci/configure_fedora33_ninja.cmake
+++ b/.gitlab/ci/configure_fedora34_ninja.cmake
@@ -4,4 +4,4 @@ set(CMake_TEST_GUI "ON" CACHE BOOL "")
# Cover compilation with C++11 only and not higher standards.
set(CMAKE_CXX_STANDARD "11" CACHE STRING "")
-include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora33_common.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora34_common.cmake")
diff --git a/.gitlab/ci/configure_fedora33_ninja_multi.cmake b/.gitlab/ci/configure_fedora34_ninja_multi.cmake
index efb4b84..efb4b84 100644
--- a/.gitlab/ci/configure_fedora33_ninja_multi.cmake
+++ b/.gitlab/ci/configure_fedora34_ninja_multi.cmake
diff --git a/.gitlab/ci/configure_fedora33_sphinx.cmake b/.gitlab/ci/configure_fedora34_sphinx.cmake
index 90d159b..90d159b 100644
--- a/.gitlab/ci/configure_fedora33_sphinx.cmake
+++ b/.gitlab/ci/configure_fedora34_sphinx.cmake
diff --git a/.gitlab/ci/configure_fedora33_sphinx_package.cmake b/.gitlab/ci/configure_fedora34_sphinx_package.cmake
index e839de8..e839de8 100644
--- a/.gitlab/ci/configure_fedora33_sphinx_package.cmake
+++ b/.gitlab/ci/configure_fedora34_sphinx_package.cmake
diff --git a/.gitlab/ci/configure_fedora34_tidy.cmake b/.gitlab/ci/configure_fedora34_tidy.cmake
new file mode 100644
index 0000000..9c79303
--- /dev/null
+++ b/.gitlab/ci/configure_fedora34_tidy.cmake
@@ -0,0 +1,3 @@
+set(CMake_RUN_CLANG_TIDY ON CACHE BOOL "")
+
+include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora34_common.cmake")
diff --git a/.gitlab/ci/docker/debian10-aarch64/install_deps.sh b/.gitlab/ci/docker/debian10-aarch64/install_deps.sh
index d84b3c8..fea502e 100755
--- a/.gitlab/ci/docker/debian10-aarch64/install_deps.sh
+++ b/.gitlab/ci/docker/debian10-aarch64/install_deps.sh
@@ -45,6 +45,7 @@ apt-get install -y \
libgif-dev \
libgl1-mesa-dev \
libglew-dev \
+ libgrpc++-dev libgrpc-dev \
libgsl-dev \
libgtest-dev \
libgtk2.0-dev \
@@ -56,7 +57,7 @@ apt-get install -y \
libopenmpi-dev openmpi-bin \
libpng-dev \
libpq-dev postgresql-server-dev-11 \
- libprotobuf-dev libprotobuf-c-dev libprotoc-dev protobuf-compiler \
+ libprotobuf-dev libprotobuf-c-dev libprotoc-dev protobuf-compiler protobuf-compiler-grpc \
libsdl-dev \
libsqlite3-dev \
libtiff-dev \
diff --git a/.gitlab/ci/docker/debian10/install_deps.sh b/.gitlab/ci/docker/debian10/install_deps.sh
index e6c9ba0..4bb03bc 100755
--- a/.gitlab/ci/docker/debian10/install_deps.sh
+++ b/.gitlab/ci/docker/debian10/install_deps.sh
@@ -45,6 +45,7 @@ apt-get install -y \
libgif-dev \
libgl1-mesa-dev \
libglew-dev \
+ libgrpc++-dev libgrpc-dev \
libgsl-dev \
libgtest-dev \
libgtk2.0-dev \
@@ -56,7 +57,7 @@ apt-get install -y \
libopenmpi-dev openmpi-bin \
libpng-dev \
libpq-dev postgresql-server-dev-11 \
- libprotobuf-dev libprotobuf-c-dev libprotoc-dev protobuf-compiler \
+ libprotobuf-dev libprotobuf-c-dev libprotoc-dev protobuf-compiler protobuf-compiler-grpc \
libsdl-dev \
libsqlite3-dev \
libtiff-dev \
diff --git a/.gitlab/ci/docker/fedora33/Dockerfile b/.gitlab/ci/docker/fedora34/Dockerfile
index 8ebcb9e..af2322d 100644
--- a/.gitlab/ci/docker/fedora33/Dockerfile
+++ b/.gitlab/ci/docker/fedora34/Dockerfile
@@ -1,10 +1,10 @@
-FROM fedora:33 as rvm-build
+FROM fedora:34 as rvm-build
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
COPY install_rvm.sh /root/install_rvm.sh
RUN sh /root/install_rvm.sh
-FROM fedora:33
+FROM fedora:34
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
COPY install_deps.sh /root/install_deps.sh
diff --git a/.gitlab/ci/docker/fedora33/install_deps.sh b/.gitlab/ci/docker/fedora34/install_deps.sh
index cdfe35e..ece0666 100755
--- a/.gitlab/ci/docker/fedora33/install_deps.sh
+++ b/.gitlab/ci/docker/fedora34/install_deps.sh
@@ -6,7 +6,8 @@ set -e
dnf install --setopt=install_weak_deps=False -y \
ncurses-devel \
openssl-devel \
- qt5-qtbase-devel
+ qt5-qtbase-devel \
+ qt6-qtbase-devel
# Install development tools.
dnf install --setopt=install_weak_deps=False -y \
@@ -19,7 +20,12 @@ dnf install --setopt=install_weak_deps=False -y \
dnf install --setopt=install_weak_deps=False -y \
python3-sphinx \
texinfo \
- qt5-qttools-devel
+ qt5-qttools-devel \
+ qt6-qttools-devel
+
+# Install lint tools.
+dnf install --setopt=install_weak_deps=False -y \
+ codespell
# Tools needed for the test suite.
dnf install --setopt=install_weak_deps=False -y \
@@ -46,6 +52,7 @@ dnf install --setopt=install_weak_deps=False -y \
glew-devel \
gmock \
gnutls-devel \
+ grpc-devel grpc-plugins \
gsl-devel \
gtest-devel \
gtk2-devel \
@@ -67,7 +74,7 @@ dnf install --setopt=install_weak_deps=False -y \
protobuf-devel protobuf-c-devel protobuf-lite-devel \
pypy2 pypy2-devel \
pypy3 pypy3-devel \
- python2 python2-devel python2-numpy \
+ python2 python2-devel \
python3 python3-devel python3-numpy \
python3-jsmin python3-jsonschema \
ruby rubygems ruby-devel \
@@ -80,3 +87,9 @@ dnf install --setopt=install_weak_deps=False -y \
xz-devel
dnf clean all
+
+# Fedora no longer packages python2 numpy.
+curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
+python2 get-pip.py
+rm get-pip.py
+pip2.7 install numpy
diff --git a/.gitlab/ci/docker/fedora33/install_ispc.sh b/.gitlab/ci/docker/fedora34/install_ispc.sh
index fdc14b5..fdc14b5 100755
--- a/.gitlab/ci/docker/fedora33/install_ispc.sh
+++ b/.gitlab/ci/docker/fedora34/install_ispc.sh
diff --git a/.gitlab/ci/docker/fedora33/install_rvm.sh b/.gitlab/ci/docker/fedora34/install_rvm.sh
index 6d4fa97..6d4fa97 100755
--- a/.gitlab/ci/docker/fedora33/install_rvm.sh
+++ b/.gitlab/ci/docker/fedora34/install_rvm.sh
diff --git a/.gitlab/ci/env_fedora33_makefiles.cmake b/.gitlab/ci/env_fedora34_makefiles.cmake
index 1d0efa7..1d0efa7 100644
--- a/.gitlab/ci/env_fedora33_makefiles.cmake
+++ b/.gitlab/ci/env_fedora34_makefiles.cmake
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index d0ac85e..f608474 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -5,7 +5,7 @@
### Release
.linux_prep_source:
- image: "fedora:33"
+ image: "fedora:34"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
@@ -45,7 +45,7 @@
### Debian
.debian10:
- image: "kitware/cmake:ci-debian10-x86_64-2021-04-06"
+ image: "kitware/cmake:ci-debian10-x86_64-2021-05-11"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
@@ -60,7 +60,7 @@
CMake_SKIP_INSTALL: 1
.debian10_aarch64:
- image: "kitware/cmake:ci-debian10-aarch64-2021-04-06"
+ image: "kitware/cmake:ci-debian10-aarch64-2021-05-11"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
@@ -68,8 +68,8 @@
### Fedora
-.fedora33:
- image: "kitware/cmake:ci-fedora33-x86_64-2021-04-06"
+.fedora34:
+ image: "kitware/cmake:ci-fedora34-x86_64-2021-05-10"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci/long file name for testing purposes"
@@ -77,28 +77,28 @@
#### Lint builds
-.fedora33_tidy:
- extends: .fedora33
+.fedora34_tidy:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_tidy
+ CMAKE_CONFIGURATION: fedora34_tidy
CTEST_NO_WARNINGS_ALLOWED: 1
CMake_SKIP_INSTALL: 1
-.fedora33_sphinx:
- extends: .fedora33
+.fedora34_sphinx:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_sphinx
+ CMAKE_CONFIGURATION: fedora34_sphinx
CTEST_NO_WARNINGS_ALLOWED: 1
CTEST_SOURCE_SUBDIRECTORY: "Utilities/Sphinx"
CMake_SKIP_INSTALL: 1
-.fedora33_sphinx_package:
- extends: .fedora33
+.fedora34_sphinx_package:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_sphinx_package
+ CMAKE_CONFIGURATION: fedora34_sphinx_package
CTEST_SOURCE_SUBDIRECTORY: "Utilities/Sphinx"
#### Build and test
@@ -117,26 +117,26 @@
CMAKE_CONFIGURATION: debian10_aarch64_ninja
CTEST_NO_WARNINGS_ALLOWED: 1
-.fedora33_ninja:
- extends: .fedora33
+.fedora34_ninja:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_ninja
+ CMAKE_CONFIGURATION: fedora34_ninja
CTEST_NO_WARNINGS_ALLOWED: 1
-.fedora33_ninja_multi:
- extends: .fedora33
+.fedora34_ninja_multi:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_ninja_multi
+ CMAKE_CONFIGURATION: fedora34_ninja_multi
CTEST_NO_WARNINGS_ALLOWED: 1
CMAKE_GENERATOR: "Ninja Multi-Config"
-.fedora33_makefiles:
- extends: .fedora33
+.fedora34_makefiles:
+ extends: .fedora34
variables:
- CMAKE_CONFIGURATION: fedora33_makefiles
+ CMAKE_CONFIGURATION: fedora34_makefiles
CTEST_NO_WARNINGS_ALLOWED: 1
CMAKE_GENERATOR: "Unix Makefiles"
@@ -374,7 +374,7 @@
.cmake_org_help:
stage: build
extends:
- - .fedora33
+ - .fedora34
- .linux_builder_tags
- .cmake_org_help_artifacts
script:
diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml
index 3253fd3..693388d 100644
--- a/.gitlab/upload.yml
+++ b/.gitlab/upload.yml
@@ -1,9 +1,10 @@
# Steps for uploading artifacts
.rsync_upload_binary:
- image: "fedora:32"
+ image: "fedora:34"
stage: upload
tags:
+ - cmake
- docker
- linux
- build
@@ -19,8 +20,9 @@
.rsync_upload_help:
stage: upload
- image: "fedora:33"
+ image: "fedora:34"
tags:
+ - cmake
- docker
- linux
- build
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 85c13ad..a778939 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -341,7 +341,7 @@ int main(int argc, char const* const* argv)
cmMakefile* mf = &globalMF;
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE,
"Specified generator: " << gen << std::endl);
- if (parsed && !mf->GetDefinition("CPACK_PACKAGE_NAME")) {
+ if (!mf->GetDefinition("CPACK_PACKAGE_NAME")) {
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
"CPack project name not specified" << std::endl);
parsed = 0;