|
|
@@ -2,19 +2,19 @@ file(READ "${RunCMake_TEST_BINARY_DIR}/mytargets.cmake" mytargets)
|
|
|
if("${mytargets}" MATCHES "find_dependency\\(P1")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P1 dependency should not be exported but it is\n")
|
|
|
endif()
|
|
|
-if(NOT "${mytargets}" MATCHES "find_dependency\\(P2 REQUIRED \"VERSION\" \"1\\.0\"\\)")
|
|
|
+if(NOT "${mytargets}" MATCHES "find_dependency\\(P2 \"VERSION\" \"1\\.0\"\\)")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P2 dependency should be exported but it is not\n")
|
|
|
endif()
|
|
|
-if(NOT "${mytargets}" MATCHES "find_dependency\\(P3 REQUIRED\\)")
|
|
|
+if(NOT "${mytargets}" MATCHES "find_dependency\\(P3\\)")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P3 dependency should be exported but it is not\n")
|
|
|
endif()
|
|
|
-if(NOT "${mytargets}" MATCHES "find_dependency\\(P4 REQUIRED\\)")
|
|
|
+if(NOT "${mytargets}" MATCHES "find_dependency\\(P4\\)")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P4 dependency should be exported but it is not\n")
|
|
|
endif()
|
|
|
if("${mytargets}" MATCHES "find_dependency\\(P5")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P5 dependency should not be exported but it is\n")
|
|
|
endif()
|
|
|
-if(NOT "${mytargets}" MATCHES "find_dependency\\(P6 REQUIRED\\)")
|
|
|
+if(NOT "${mytargets}" MATCHES "find_dependency\\(P6\\)")
|
|
|
string(APPEND RunCMake_TEST_FAILED "P6 dependency should be exported but it is not\n")
|
|
|
endif()
|
|
|
if("${mytargets}" MATCHES "find_dependency\\(P7")
|