CMakeDependentOption: Allow parentheses in the depends string
`if()` takes the condition as a list of arguments. Parentheses need to be separated as well. Fixes: #22303
Showing
- Modules/CMakeDependentOption.cmake 4 additions, 1 deletionModules/CMakeDependentOption.cmake
- Tests/RunCMake/CMakeDependentOption/Parentheses-stdout.txt 1 addition, 0 deletionsTests/RunCMake/CMakeDependentOption/Parentheses-stdout.txt
- Tests/RunCMake/CMakeDependentOption/Parentheses.cmake 7 additions, 0 deletionsTests/RunCMake/CMakeDependentOption/Parentheses.cmake
- Tests/RunCMake/CMakeDependentOption/RunCMakeTest.cmake 3 additions, 0 deletionsTests/RunCMake/CMakeDependentOption/RunCMakeTest.cmake
- Tests/RunCMake/CMakeLists.txt 1 addition, 0 deletionsTests/RunCMake/CMakeLists.txt
Loading
Please register or sign in to comment