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 GenEx: Test early determination of AND and OR 2012-10-20 14:23:47 +02:00
BadAND.cmake GenEx: Test early determination of AND and OR 2012-10-20 14:23:47 +02:00
BadCONFIG-result.txt Add $<CONFIG:...> boolean query generator expression 2012-08-15 11:44:49 -04:00
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 Make it an error for INSTALL_PREFIX to be evaluated. 2013-01-31 17:27:06 +01:00
BadInstallPrefix-stderr.txt Make it an error for INSTALL_PREFIX to be evaluated. 2013-01-31 17:27:06 +01:00
BadInstallPrefix.cmake Make it an error for INSTALL_PREFIX to be evaluated. 2013-01-31 17:27:06 +01:00
BadNOT-result.txt
BadNOT-stderr.txt GenEx: Parse comma after colon tokens specially 2012-10-09 08:26:43 -04:00
BadNOT.cmake cmGeneratorExpression: Re-write for multi-stage evaluation 2012-09-18 17:02:23 -04:00
BadOR-result.txt
BadOR-stderr.txt GenEx: Test early determination of AND and OR 2012-10-20 14:23:47 +02:00
BadOR.cmake GenEx: Test early determination of AND and OR 2012-10-20 14:23:47 +02:00
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 GenEx: Parse comma after colon tokens specially 2012-10-09 08:26:43 -04:00
BadStrEqual-stderr.txt GenEx: Parse comma after colon tokens specially 2012-10-09 08:26:43 -04:00
BadStrEqual.cmake GenEx: Parse comma after colon tokens specially 2012-10-09 08:26:43 -04:00
BadTargetName-result.txt Add the TARGET_NAME generator expression. 2013-01-05 01:05:09 +01:00
BadTargetName-stderr.txt Add the TARGET_NAME generator expression. 2013-01-05 01:05:09 +01:00
BadTargetName.cmake Add the TARGET_NAME generator expression. 2013-01-05 01:05:09 +01:00
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 Genex: Ensure that $<0:...> has a parameter. 2012-11-27 09:12:39 -05:00
BadZero-stderr.txt Genex: Don't segfault on $<FOO,> 2012-11-27 09:12:39 -05:00
BadZero.cmake Genex: Don't segfault on $<FOO,> 2012-11-27 09:12:39 -05:00
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 Cygwin: Avoid legacy warnings in RunCMake.* tests 2013-08-13 09:50:15 -04:00
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