mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
find_package: Test rejection of required+optional components
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,8 @@
|
||||
CMake Error at ComponentRequiredAndOptional.cmake:1 \(find_package\):
|
||||
find_package called with components that are both required and optional:
|
||||
|
||||
CompA
|
||||
CompB
|
||||
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -0,0 +1 @@
|
||||
find_package(NotHere REQUIRED CompA CompB CompC OPTIONAL_COMPONENTS CompA CompB CompD)
|
||||
@@ -1,5 +1,6 @@
|
||||
include(RunCMake)
|
||||
|
||||
run_cmake(ComponentRequiredAndOptional)
|
||||
run_cmake(MissingNormal)
|
||||
run_cmake(MissingNormalRequired)
|
||||
run_cmake(MissingNormalVersion)
|
||||
|
||||
Reference in New Issue
Block a user