mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
9998d78d63
Remove unnecessary language initializations. Change the main CMakeLists.txt project() call to specify NONE. Use enable_language(CXX) instead of project() in cases that need it to avoid enabling C too.
24 lines
761 B
CMake
24 lines
761 B
CMake
enable_language(CXX)
|
|
|
|
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)
|