From 4a212be6f0837b45800ca86e8658b8842af0af18 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 15 Jul 2013 10:54:55 +0200 Subject: [PATCH] Only run the cmake test in the install location if not already done. For developer builds, there is no need to run the test a second time. Change-Id: I3564874cb2e9d6cc243e25a89ecd7f89df23b0bd Reviewed-by: Oswald Buddenhagen --- mkspecs/features/ctest_testcase_installed.prf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mkspecs/features/ctest_testcase_installed.prf b/mkspecs/features/ctest_testcase_installed.prf index be741b4a0b..b54f321008 100644 --- a/mkspecs/features/ctest_testcase_installed.prf +++ b/mkspecs/features/ctest_testcase_installed.prf @@ -1,8 +1,10 @@ -CMAKE_TEST_LOCATION = $$_PRO_FILE_PWD_/../cmake +prefix_build { + CMAKE_TEST_LOCATION = $$_PRO_FILE_PWD_/../cmake -CMAKE_PREFIX_PATH = $$[QT_INSTALL_PREFIX] + CMAKE_PREFIX_PATH = $$[QT_INSTALL_PREFIX] -CONFIG += insignificant_test + CONFIG += insignificant_test -include(ctest_testcase_common.prf) + include(ctest_testcase_common.prf) +}