-
- Downloads
include: Ignore empty string as file name (#13388)
Previously CMake silently accepted the empty string and added a bogus dependency on the current directory. Instead warn about the empty file name and ignore it. We cannot make this an error because there may be existing projects that accidentally depend on the old behavior. Add a RunCMake.include test to cover this case.
Showing
- Source/cmIncludeCommand.cxx 7 additions, 0 deletionsSource/cmIncludeCommand.cxx
- Tests/RunCMake/CMakeLists.txt 1 addition, 0 deletionsTests/RunCMake/CMakeLists.txt
- Tests/RunCMake/include/CMakeLists.txt 3 additions, 0 deletionsTests/RunCMake/include/CMakeLists.txt
- Tests/RunCMake/include/EmptyString-stderr.txt 5 additions, 0 deletionsTests/RunCMake/include/EmptyString-stderr.txt
- Tests/RunCMake/include/EmptyString.cmake 1 addition, 0 deletionsTests/RunCMake/include/EmptyString.cmake
- Tests/RunCMake/include/EmptyStringOptional-stderr.txt 5 additions, 0 deletionsTests/RunCMake/include/EmptyStringOptional-stderr.txt
- Tests/RunCMake/include/EmptyStringOptional.cmake 1 addition, 0 deletionsTests/RunCMake/include/EmptyStringOptional.cmake
- Tests/RunCMake/include/RunCMakeTest.cmake 4 additions, 0 deletionsTests/RunCMake/include/RunCMakeTest.cmake
Tests/RunCMake/include/CMakeLists.txt
0 → 100644
Tests/RunCMake/include/EmptyString.cmake
0 → 100644
Tests/RunCMake/include/RunCMakeTest.cmake
0 → 100644
Please register or sign in to comment