CMake/Tests/RunCMake/GeneratorExpression
Brad King f500a784d0 Fix crash on $<TARGET_PROPERTY:...,LOCATION> genex (#16134)
Policy CMP0026 deprecated the LOCATION property, and we have long
provided a $<TARGET_FILE:...> generator expression.  However, if
a project tries to use $<TARGET_PROPERTY:...,LOCATION> we should
at least not crash.

The compatibility implementation of the LOCATION property uses
cmGlobalGenerator::CreateGenerationObjects to create the structures
needed to evaluate the property before generation starts.  The
implementation assumed that accessing the property could only be done
during configuration (via the typical get_property command use case).
The $<TARGET_PROPERTY:...,LOCATION> genex causes the LOCATION property
to be accessed during generation.  Calling CreateGenerationObjects
during generation blows away all the objects currently being used for
generation and is not safe.  Add a condition to call it only when
configuration is not finished.
2016-06-02 10:58:38 -04:00
..
BadAND-result.txt
BadAND-stderr.txt
BadAND.cmake
BadCONFIG-result.txt
BadCONFIG-stderr.txt Genex: Add a nullary form for CONFIG 2014-01-07 09:38:01 -05:00
BadCONFIG.cmake Genex: Add a nullary form for CONFIG 2014-01-07 09:38:01 -05:00
BadInstallPrefix-result.txt
BadInstallPrefix-stderr.txt
BadInstallPrefix.cmake
BadNOT-result.txt
BadNOT-stderr.txt
BadNOT.cmake
BadOR-result.txt
BadOR-stderr.txt
BadOR.cmake
BadSHELL_PATH-result.txt Genex: Add a SHELL_PATH expression 2015-09-28 10:37:33 -04:00
BadSHELL_PATH-stderr.txt Genex: Add a SHELL_PATH expression 2015-09-28 10:37:33 -04:00
BadSHELL_PATH.cmake Genex: Add a SHELL_PATH expression 2015-09-28 10:37:33 -04:00
BadStrEqual-result.txt
BadStrEqual-stderr.txt
BadStrEqual.cmake
BadTargetName-result.txt
BadTargetName-stderr.txt
BadTargetName.cmake
BadTargetTypeInterface-result.txt Tests: Add case for rejecting $<TARGET_FILE:...> on an INTERFACE library 2015-05-26 11:53:36 -04:00
BadTargetTypeInterface-stderr.txt Tests: Add case for rejecting $<TARGET_FILE:...> on an INTERFACE library 2015-05-26 11:53:36 -04:00
BadTargetTypeInterface.cmake Tests: Add case for rejecting $<TARGET_FILE:...> on an INTERFACE library 2015-05-26 11:53:36 -04:00
BadTargetTypeObject-result.txt Genex: Reject $<TARGET_FILE:...> for object libraries (#14532) 2013-11-01 10:17:01 -04:00
BadTargetTypeObject-stderr.txt Genex: Reject $<TARGET_FILE:...> for object libraries (#14532) 2013-11-01 10:17:01 -04:00
BadTargetTypeObject.cmake Genex: Reject $<TARGET_FILE:...> for object libraries (#14532) 2013-11-01 10:17:01 -04:00
BadZero-result.txt
BadZero-stderr.txt
BadZero.cmake
CMP0044-WARN-result.txt Genex: Use case-sensitive comparison for COMPILER_ID. 2014-01-08 16:41:34 +01:00
CMP0044-WARN-stderr.txt Genex: Use case-sensitive comparison for COMPILER_ID. 2014-01-08 16:41:34 +01:00
CMP0044-WARN.cmake Genex: Use case-sensitive comparison for COMPILER_ID. 2014-01-08 16:41:34 +01:00
CMakeLists.txt
COMPILE_LANGUAGE-add_custom_command-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_custom_command-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_custom_command.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_custom_target-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_custom_target-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_custom_target.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_executable-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_executable-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_executable.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_library-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_library-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_library.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_test-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_test-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-add_test.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-install-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-install-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-install.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-target_sources-result.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-target_sources-stderr.txt Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-target_sources.cmake Genex: Add a COMPILE_LANGUAGE generator expression. 2015-03-07 13:19:45 +01:00
COMPILE_LANGUAGE-unknown-lang-result.txt Genex: Enable use of COMPILE_LANGUAGE for compile options. 2015-03-09 20:48:57 +01:00
COMPILE_LANGUAGE-unknown-lang-stderr.txt Genex: Enable use of COMPILE_LANGUAGE for compile options. 2015-03-09 20:48:57 +01:00
COMPILE_LANGUAGE-unknown-lang.cmake Genex: Enable use of COMPILE_LANGUAGE for compile options. 2015-03-09 20:48:57 +01:00
ImportedTarget-TARGET_PDB_FILE-result.txt Reject TARGET_PDB_FILE for imported targets instead of crashing 2015-08-06 09:42:31 -04:00
ImportedTarget-TARGET_PDB_FILE-stderr.txt Reject TARGET_PDB_FILE for imported targets instead of crashing 2015-08-06 09:42:31 -04:00
ImportedTarget-TARGET_PDB_FILE.cmake Reject TARGET_PDB_FILE for imported targets instead of crashing 2015-08-06 09:42:31 -04:00
NonValidCompiler-TARGET_PDB_FILE-result.txt Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidCompiler-TARGET_PDB_FILE-stderr.txt Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidCompiler-TARGET_PDB_FILE.cmake Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidTarget-CXX_COMPILER_ID-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-CXX_COMPILER_ID-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-CXX_COMPILER_ID.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-CXX_COMPILER_VERSION-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-CXX_COMPILER_VERSION-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-CXX_COMPILER_VERSION.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_ID-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_ID-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_ID.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_VERSION-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_VERSION-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-C_COMPILER_VERSION.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_PDB_FILE-result.txt Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidTarget-TARGET_PDB_FILE-stderr.txt Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidTarget-TARGET_PDB_FILE.cmake Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
NonValidTarget-TARGET_POLICY-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_POLICY-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_POLICY.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_PROPERTY-result.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_PROPERTY-stderr.txt Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
NonValidTarget-TARGET_PROPERTY.cmake Genex: Clarify error message on use with non-binary targets (#14899). 2014-05-29 11:29:31 +02:00
OUTPUT_NAME-recursion-result.txt cmGeneratorTarget: Avoid recursion in GetOutputName method 2015-08-20 09:56:45 -04:00
OUTPUT_NAME-recursion-stderr.txt cmGeneratorTarget: Avoid recursion in GetOutputName method 2015-08-20 09:56:45 -04:00
OUTPUT_NAME-recursion.cmake cmGeneratorTarget: Avoid recursion in GetOutputName method 2015-08-20 09:56:45 -04:00
RunCMakeTest.cmake Fix crash on $<TARGET_PROPERTY:...,LOCATION> genex (#16134) 2016-06-02 10:58:38 -04:00
TARGET_FILE-recursion-result.txt Add generator expression support to OUTPUT_DIRECTORY target properties 2015-08-12 13:43:00 -04:00
TARGET_FILE-recursion-stderr.txt Add generator expression support to OUTPUT_DIRECTORY target properties 2015-08-12 13:43:00 -04:00
TARGET_FILE-recursion.cmake cmGeneratorTarget: Avoid recursion in GetOutputName method 2015-08-20 09:56:45 -04:00
TARGET_PROPERTY-LOCATION-stderr.txt Fix crash on $<TARGET_PROPERTY:...,LOCATION> genex (#16134) 2016-06-02 10:58:38 -04:00
TARGET_PROPERTY-LOCATION.cmake Fix crash on $<TARGET_PROPERTY:...,LOCATION> genex (#16134) 2016-06-02 10:58:38 -04:00
ValidTarget-TARGET_PDB_FILE-check.cmake Encoding: Modify tests to work using non-ascii paths. 2015-01-08 20:56:51 -07:00
ValidTarget-TARGET_PDB_FILE.cmake Genex: Implement generator expressions for target PDB files. 2014-07-31 09:17:53 -04:00
empty.c Genex: Reject $<TARGET_FILE:...> for object libraries (#14532) 2013-11-01 10:17:01 -04:00