summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorRobert Goulet <robert.goulet@autodesk.com>2015-08-14 20:35:58 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-20 13:56:45 (GMT)
commit3c37d2642d9000a2d01bc46ad0ea74a741bdb658 (patch)
treec1bb63b2a35fbb0de0691c88e1c4535cee6d0f4e /Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
parenta38ea312c02eec6e4ee61015f70920999bf79ff9 (diff)
downloadCMake-3c37d2642d9000a2d01bc46ad0ea74a741bdb658.zip
CMake-3c37d2642d9000a2d01bc46ad0ea74a741bdb658.tar.gz
CMake-3c37d2642d9000a2d01bc46ad0ea74a741bdb658.tar.bz2
cmGeneratorTarget: Avoid recursion in GetOutputName method
Since support for generator expressions was added to OUTPUT_NAME it is possible for project code to cause recursion in this method by using a $<TARGET_FILE> genex. Detect and reject such cases.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
index 21fc851..0679024 100644
--- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
+++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
@@ -26,6 +26,7 @@ run_cmake(COMPILE_LANGUAGE-add_library)
run_cmake(COMPILE_LANGUAGE-add_test)
run_cmake(COMPILE_LANGUAGE-unknown-lang)
run_cmake(TARGET_FILE-recursion)
+run_cmake(OUTPUT_NAME-recursion)
run_cmake(ImportedTarget-TARGET_PDB_FILE)
if(LINKER_SUPPORTS_PDB)