[Cmake] Problems with duplicate file names
Bill Hoffman
bill . hoffman at kitware . com
Thu, 07 Aug 2003 10:48:15 -0400
This is fixed in CVS, and CMake 1.8 should be out soon.
FYI, we now have a bug tracker that is a better place
to report bugs in CMake.
Here is the link for the bug tracker:
http://public . kitware . com/Bug/
-Bill
At 06:10 PM 8/6/2003, Cody Batt wrote:
>Hello,
>
>I have this small CMakeLists.txt file:
>SET( ROOT ./source )
>SET( SOURCE_FILES
> main.cpp
> ${ROOT}/fs/path.cpp
> ${ROOT}/system/path.cpp
>)
>INCLUDE_DIRECTORIES( . ${ROOT} )
>ADD_EXECUTABLE( test ${SOURCE_FILES} )
>
>The problem is that the generated project only includes fs/path.cpp.
>system/path.cpp does not get included in the project and so I get linker errors when I try to build. I am using CMake 1.6.7 with VS .NET 2003 but this also happens with MSVC 6. Everything works fine if I manually add the system/path.cpp file to the cmake-generated project. I attached a small zip file which contains the files to reproduce the problem. If I am doing something wrong or somehow misusing cmake please suggest the correct way to do this.
>
>Thank you,
>Cody Batt
>
>