mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
`GetDepends` passed the same string as the input and output of `GetRealDependency`, which corrupted relative file dependencies. Additionally, a custom command depending on the artifact of a target defined later declared that file as an input before the target defined it, which FASTBuild rejects. Depend on the target producing the artifact so that it is defined first.
33 lines
1.0 KiB
CMake
33 lines
1.0 KiB
CMake
include(RunCMake)
|
|
|
|
# Unity of size 1 doesn't make sense and shouldn't be created.
|
|
run_cmake(Unity1)
|
|
run_cmake(Unity2)
|
|
run_cmake(UnityBatchSize)
|
|
run_cmake(UnityGroup)
|
|
run_cmake(UnityIsolate)
|
|
run_cmake(UnityIsolateFileSet)
|
|
run_cmake(UnitySourceProperties)
|
|
run_cmake(UnityFileSetProperties)
|
|
run_cmake(UnitySubdirs)
|
|
run_cmake(UnitySubdirsIsolate)
|
|
run_cmake(DisableCaching)
|
|
run_cmake(DisableDistribution)
|
|
run_cmake(SetCompilerProps)
|
|
run_cmake(ImportedObjectLib)
|
|
run_cmake(InterfaceWithPrivateSource)
|
|
run_cmake(ObjectAndSharedLibs)
|
|
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/ObjectAndSharedLibs-build)
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
run_cmake_command(ObjectAndSharedLibs-build ${CMAKE_COMMAND} --build .)
|
|
|
|
block()
|
|
set(RunCMake_TEST_BINARY_DIR
|
|
${RunCMake_BINARY_DIR}/CustomCommandDependsArtifact-build)
|
|
unset(RunCMake_TEST_NO_CLEAN)
|
|
run_cmake(CustomCommandDependsArtifact)
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
run_cmake_command(CustomCommandDependsArtifact-build
|
|
${CMAKE_COMMAND} --build . --target consumer)
|
|
endblock()
|