mirror of
https://github.com/reactos/CMake.git
synced 2025-02-12 23:19:13 +00:00
![Brad King](/assets/img/avatar_default.png)
Since commit v3.11.0-rc1~467^2 (VS,Xcode: Add CMakeLists.txt sources without mutating targets, 2017-10-18) we do not add `CMakeLists.txt` to target sources but instead generate references to them directly. This broke projects that explicitly specify their `CMakeLists.txt` file as a source file because the explicit entry is no longer consolidated with the generated one. Teach the relevant generators to avoid duplicating `CMakeLists.txt` source references and add test cases. Fixes: #17828
3 lines
92 B
CMake
3 lines
92 B
CMake
enable_language(CXX)
|
|
add_executable(foo foo.cpp ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
|