aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvidiu-Florin BOGDAN <ovidiu.b13@gmail.com>2016-12-02 12:44:34 +0200
committerOvidiu-Florin BOGDAN <ovidiu.b13@gmail.com>2016-12-03 22:25:10 +0200
commite630aa985494bcfccb5b5e722a32a4e77d581271 (patch)
treef86a27f6fde60d45fe21a9ffe4ca3ee74dc8d151
parent78fc8f7a22cf1f6a091ccc3b94c6e2dff038f8bd (diff)
downloadextra-cmake-modules-e630aa985494bcfccb5b5e722a32a4e77d581271.tar.gz
extra-cmake-modules-e630aa985494bcfccb5b5e722a32a4e77d581271.tar.bz2
Find the correct path to the cmake commandv5.29.0-rc1v5.29.0
Summary: When running tests with hardcoded `cmake`, it get's suffixed to the project's build path. Setting it with an absolute path ensures using the right cmake binary. Test Plan: Compiled, installed. Used to generate tests for kdev-embedded. `cmake` binary is now prefixed with the absolute system path, and no longer with the project's build dir. Reviewers: kfunk, #frameworks, apol Reviewed By: kfunk, apol Subscribers: kfunk Differential Revision: https://phabricator.kde.org/D3568
-rw-r--r--kde-modules/KDECMakeSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index 3d65c327..45621b95 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -153,7 +153,7 @@ find_program(APPSTREAMCLI appstreamcli)
function(appstreamtest)
if(APPSTREAMCLI AND NOT appstreamtest_added)
set(appstreamtest_added TRUE PARENT_SCOPE)
- add_test(NAME appstreamtest COMMAND cmake -DAPPSTREAMCLI=${APPSTREAMCLI} -DINSTALL_FILES=${CMAKE_BINARY_DIR}/install_manifest.txt -P ${CMAKE_CURRENT_LIST_DIR}/appstreamtest.cmake)
+ add_test(NAME appstreamtest COMMAND ${CMAKE_COMMAND} -DAPPSTREAMCLI=${APPSTREAMCLI} -DINSTALL_FILES=${CMAKE_BINARY_DIR}/install_manifest.txt -P ${CMAKE_CURRENT_LIST_DIR}/appstreamtest.cmake)
else()
message(STATUS "Could not set up the appstream test. appstreamcli is missing.")
endif()