diff options
author | Rolf Eike Beer <eb@emlix.com> | 2019-07-05 09:50:38 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eb@emlix.com> | 2019-07-05 14:24:58 (GMT) |
commit | 3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f (patch) | |
tree | 6e389939fce105242a08cf1dfc5ae215c357e506 /Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake | |
parent | 09cf0520794d3716c0931584f908a575cd8b59d0 (diff) | |
download | CMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.zip CMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.tar.gz CMake-3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f.tar.bz2 |
CPackComponentsDEB test: simplify if() arguments
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake')
-rw-r--r-- | Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake index ba94127..f74137c 100644 --- a/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake +++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-description1.cmake @@ -54,18 +54,18 @@ if(DPKGDEB_EXECUTABLE) message(STATUS "package='${dpkg_package_name}', description='${dpkg_description}'") - if("${dpkg_package_name}" STREQUAL "mylib-applications") + if(dpkg_package_name STREQUAL "mylib-applications") if(NOT "${dpkg_description}" STREQUAL "applications_description") set(dpkgdeb_output_errors_all ${dpkgdeb_output_errors_all} "dpkg-deb: ${_f}: Incorrect description for package ${dpkg_package_name}: ${dpkg_description} != applications_description") endif() - elseif("${dpkg_package_name}" STREQUAL "mylib-headers") - if(NOT "${dpkg_description}" STREQUAL "headers_description") + elseif(dpkg_package_name STREQUAL "mylib-headers") + if(NOT dpkg_description STREQUAL "headers_description") set(dpkgdeb_output_errors_all ${dpkgdeb_output_errors_all} "dpkg-deb: ${_f}: Incorrect description for package ${dpkg_package_name}: ${dpkg_description} != headers_description") endif() - elseif("${dpkg_package_name}" STREQUAL "mylib-libraries") - if(NOT "${dpkg_description}" STREQUAL "main description") + elseif(dpkg_package_name STREQUAL "mylib-libraries") + if(NOT dpkg_description STREQUAL "main description") set(dpkgdeb_output_errors_all ${dpkgdeb_output_errors_all} "dpkg-deb: ${_f}: Incorrect description for package ${dpkg_package_name}: ${dpkg_description} != 'main description'") endif() @@ -77,7 +77,7 @@ if(DPKGDEB_EXECUTABLE) endforeach() - if(NOT "${dpkgdeb_output_errors_all}" STREQUAL "") + if(NOT dpkgdeb_output_errors_all STREQUAL "") message(FATAL_ERROR "dpkg-deb checks failed:\n${dpkgdeb_output_errors_all}") endif() else() |