You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
766 B
24 lines
766 B
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)
|