summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPython/Python2SABIModule.cmake
diff options
context:
space:
mode:
authorEvan Wilde <etceterawilde@gmail.com>2025-01-03 05:54:23 (GMT)
committerBrad King <brad.king@kitware.com>2025-02-14 15:01:10 (GMT)
commit321c6476407ad2324daf7fd741b49bf07f220cc3 (patch)
tree013b7badd25c37a29b3276dc9caa8ff62addd9a8 /Tests/RunCMake/FindPython/Python2SABIModule.cmake
parent8845d33292a622f182236874435846f04f73d58c (diff)
downloadCMake-321c6476407ad2324daf7fd741b49bf07f220cc3.zip
CMake-321c6476407ad2324daf7fd741b49bf07f220cc3.tar.gz
CMake-321c6476407ad2324daf7fd741b49bf07f220cc3.tar.bz2
Include source file without an extension after the same name with an extension
CMP0115 requires that source files listed in CMake must include their file extension, but there are cases when projects have different source files with the same name, but one with an extension and one without. In the current state, CMake will ignore the file without the extension an always map it to the file with an extension. ```cmake add_library(foo bar.c bar) ``` In the above example, the target `foo` will only recognize and depend on `bar.c` and miss the file `bar` unless `bar` comes before `bar.c` in the source list. This issue also affects how custom commands emit files. This change adds a new policy to recognize files with and without a file extension as different files, both when building targets, and when they are being created. Fixes: #26058
Diffstat (limited to 'Tests/RunCMake/FindPython/Python2SABIModule.cmake')
0 files changed, 0 insertions, 0 deletions