From 2aafaccc5e6d6a0cd557bc80d874a0b77baf8303 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 13 Sep 2013 17:51:10 +0200 Subject: [PATCH] genex: Test preprocessing incomplete expressions. --- .../include_directories/RunCMakeTest.cmake | 1 + .../incomplete-genex.cmake | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Tests/RunCMake/include_directories/incomplete-genex.cmake diff --git a/Tests/RunCMake/include_directories/RunCMakeTest.cmake b/Tests/RunCMake/include_directories/RunCMakeTest.cmake index f0704f462..f66823eab 100644 --- a/Tests/RunCMake/include_directories/RunCMakeTest.cmake +++ b/Tests/RunCMake/include_directories/RunCMakeTest.cmake @@ -10,3 +10,4 @@ run_cmake(ImportedTarget) run_cmake(RelativePathInGenex) run_cmake(CMP0021) run_cmake(install_config) +run_cmake(incomplete-genex) diff --git a/Tests/RunCMake/include_directories/incomplete-genex.cmake b/Tests/RunCMake/include_directories/incomplete-genex.cmake new file mode 100644 index 000000000..b6900a464 --- /dev/null +++ b/Tests/RunCMake/include_directories/incomplete-genex.cmake @@ -0,0 +1,23 @@ +project(incomplete-genex) + +cmake_policy(SET CMP0022 NEW) +cmake_policy(SET CMP0023 NEW) + +add_library(somelib empty.cpp) + +# This test ensures that some internal mechanisms of cmGeneratorExpression +# do not segfault (#14410). + +# Test that cmGeneratorExpression::Preprocess(StripAllGeneratorExpressions) +# does not segfault +target_include_directories(somelib PUBLIC + "/include;/include/$