diff options
author | Brad King <brad.king@kitware.com> | 2016-09-05 13:04:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-05 13:06:00 (GMT) |
commit | f6fd0abc5bbfa7d677cd090ba8e2894d96afdde8 (patch) | |
tree | 2deeea75b706ea1103e1903c228e155978975c26 /Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | |
parent | f6428725bb0ae7e64866e3eca16a5ad8f007f916 (diff) | |
download | CMake-f6fd0abc5bbfa7d677cd090ba8e2894d96afdde8.zip CMake-f6fd0abc5bbfa7d677cd090ba8e2894d96afdde8.tar.gz CMake-f6fd0abc5bbfa7d677cd090ba8e2894d96afdde8.tar.bz2 |
Genex: Diagnose invalid LINK_ONLY usage instead of crashing
When `$<LINK_ONLY:...>` is used outside of linking we may evaluate it
without a `dagChecker`. Do not dereference the NULL pointer and issue a
diagnostic instead.
Closes: #16287
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake index 625bab2..f5584d5 100644 --- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake @@ -29,6 +29,7 @@ run_cmake(COMPILE_LANGUAGE-unknown-lang) run_cmake(TARGET_FILE-recursion) run_cmake(OUTPUT_NAME-recursion) run_cmake(TARGET_PROPERTY-LOCATION) +run_cmake(LINK_ONLY-not-linking) run_cmake(ImportedTarget-TARGET_PDB_FILE) if(LINKER_SUPPORTS_PDB) |