Imported Upstream version 3.23.2
[platform/upstream/cmake.git] / Tests / RunCMake / target_sources / RunCMakeTest.cmake
index 8429c96..e78ee9d 100644 (file)
@@ -43,6 +43,15 @@ if(APPLE)
   run_cmake(FileSetFramework)
 endif()
 
+set(RunCMake_TEST_NO_CLEAN 1)
+set(RunCMake_TEST_BINARY_DIR "${RunCMake_BINARY_DIR}/FileSetGeneratedDependency-build")
+file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
+file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
+run_cmake(FileSetGeneratedDependency)
+run_cmake_command(FileSetGeneratedDependency-build ${CMAKE_COMMAND} --build . --config Debug)
+unset(RunCMake_TEST_BINARY_DIR)
+unset(RunCMake_TEST_NO_CLEAN)
+
 set(RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0115=NEW)
 run_cmake(FileSetFileNoExist)
 unset(RunCMake_TEST_OPTIONS)