mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Merge topic 'fix-genex-preprocessing-incomplete-test'
2aafacc
genex: Test preprocessing incomplete expressions.
This commit is contained in:
commit
6494cf56dc
@ -10,3 +10,4 @@ run_cmake(ImportedTarget)
|
|||||||
run_cmake(RelativePathInGenex)
|
run_cmake(RelativePathInGenex)
|
||||||
run_cmake(CMP0021)
|
run_cmake(CMP0021)
|
||||||
run_cmake(install_config)
|
run_cmake(install_config)
|
||||||
|
run_cmake(incomplete-genex)
|
||||||
|
23
Tests/RunCMake/include_directories/incomplete-genex.cmake
Normal file
23
Tests/RunCMake/include_directories/incomplete-genex.cmake
Normal file
@ -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/$<BUILD_INTERFACE:subdir"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Test that cmGeneratorExpression::Preprocess(BuildInterface) does not segfault
|
||||||
|
export(TARGETS somelib FILE somelibTargets.cmake)
|
||||||
|
|
||||||
|
install(TARGETS somelib EXPORT someExport DESTINATION prefix)
|
||||||
|
# Test that cmGeneratorExpression::Preprocess(InstallInterface)
|
||||||
|
# and cmGeneratorExpression::Split do not segfault
|
||||||
|
install(EXPORT someExport DESTINATION prefix)
|
Loading…
Reference in New Issue
Block a user