CMake/Tests/RunCMake/File_Generate
Stephen Kelly b80557c7bd file(GENERATE): Evaluate early to allow generating source files
The evaluation files must be known before cmTargetTraceDependencies
attempts to find them, but we must actually generate the files after
cmTargetTraceDependencies, as that can add to target SOURCES.  The
limitation is that the generated output name must not depend on the
SOURCES of a target if the generated file is used by that target.

Mark the output files as GENERATED so that trace dependencies does
not expect them to already exist in the filesystem.

Move the invokation of ForceLinkerLanguage in the Generate logic
to after the generated file names are known.  ForceLinkerLanguage
tries to determine the sources of a target (in order to determine
an already-known language) and otherwise fails to get information
about the generated file.

Test that the output of file(GENERATE) can be used as a target source
file and that accessing the target SOURCES in the name of the output
file is an error.  Accessing the TARGET_OBJECTS would be a similar
error if it was legal to use that generator expression in this
context.  That is not currently possible and is a different error
condition, so test the current error output as a reminder to change
the expected output if that becomes possible in the future.  Test
that generated rule files resulting from cmTargetTraceDependencies
appear in the SOURCES generated in the output file.
2014-11-12 22:36:45 +01:00
..
BadCondition-result.txt
BadCondition-stderr.txt
BadCondition.cmake
CMakeLists.txt Tests: Refactor RunCMake.File_Generate to drop RunCMake_TEST_FILE 2014-06-30 14:32:51 -04:00
CarryPermissions-result.txt file(GENERATE): Use permissions of input file if present. 2014-11-04 22:38:22 +01:00
CarryPermissions-stderr.txt file(GENERATE): Use permissions of input file if present. 2014-11-04 22:38:22 +01:00
CarryPermissions.cmake file(GENERATE): Use permissions of input file if present. 2014-11-04 22:38:22 +01:00
CommandConflict-result.txt
CommandConflict-stderr.txt
CommandConflict.cmake
DebugEvaluate.cmake
EmptyCondition1-result.txt
EmptyCondition1-stderr.txt Tests: Refactor RunCMake.File_Generate to drop RunCMake_TEST_FILE 2014-06-30 14:32:51 -04:00
EmptyCondition1.cmake
EmptyCondition2-result.txt
EmptyCondition2-stderr.txt Tests: Refactor RunCMake.File_Generate to drop RunCMake_TEST_FILE 2014-06-30 14:32:51 -04:00
EmptyCondition2.cmake
GenerateSource-result.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
GenerateSource-stderr.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
GenerateSource.cmake file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputConflict-result.txt
OutputConflict-stderr.txt
OutputConflict.cmake
OutputNameMatchesObjects-result.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesObjects-stderr.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesObjects.cmake file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesOtherSources-result.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesOtherSources-stderr.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesOtherSources.cmake file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesSources-result.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesSources-stderr.txt file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
OutputNameMatchesSources.cmake file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
RunCMakeTest.cmake file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
WriteIfDifferent-result.txt file(GENERATE): Only write the file if content is different. 2014-04-30 15:18:13 +02:00
WriteIfDifferent-stderr.txt file(GENERATE): Only write the file if content is different. 2014-04-30 15:18:13 +02:00
WriteIfDifferent.cmake file(GENERATE): Only write the file if content is different. 2014-04-30 15:18:13 +02:00
empty.cpp file(GENERATE): Evaluate early to allow generating source files 2014-11-12 22:36:45 +01:00
input.txt
input_script.sh file(GENERATE): Use permissions of input file if present. 2014-11-04 22:38:22 +01:00