Hi Jan, it'simpossible to answer such questions without seeing your setup. Can you post your CMakeList and your directory structure?
Petr On Tue, Jul 7, 2015 at 6:36 PM, Jan Steinke <jan.stei...@gmail.com> wrote: > Dear all, > I came across a problem, for me it seems that cmake does not allow header > files to be have the same name. Or am I doing something wrong? > > I have two projects, a library and an application. Both have files with > similar content, but the same file names. I am using cmake to compile the > app and the aim is that cmake also compiles the library if it doesn't yet > exist. I was stuck for a few days on that problem until I figured out that > it was due to the same file names. When renaming the files in my > application it builds correctly. Before I switched to cmake a week ago, I > used qmake integrated into Qt Creator, and it compiled just fine. > > Is it wanted behavior, that cmake does not allow the same file names? Am I > doing something wrong? Altough it works with renaming the files I would > like to find a "cleaner" way that prevents this from happening in the > future, having same file names is nothing you can prevent if you work in a > team. > > I hope you are able to help me, > Jan > -- > Jan > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake