Re: [CMake] cmake cannot find source file (new to cmake)

2018-12-27 Thread Chuck Atkins via CMake
> > When I ran "cmake .." in bin, cmake complained that it could not find > source file src1.h in add_executable. What is wrong here? > Hi Lei, Alex hit several of these points, but to wrap it up together: A couple of things... - There's no need for a CMakeLists.txt in a directory if it's

[CMake] Fwd: cmake cannot find source file (new to cmake)

2018-12-20 Thread Oleksii Vilchanskyi
Forwarding to the list and replying to some parts. > I removed add_subdirectories and added path to each of the source > file according to your instruction and things worked! I just have a > quick question: why should I remove the add_subdirectories in the src > CMakeLists.txt? I thought

Re: [CMake] cmake cannot find source file (new to cmake)

2018-12-20 Thread Oleksii Vilchanskyi
>     Toplevel > >        |- CMakeLists.txt > >        |- src |--CMakeLists.txt > >        |                      > |--common---|---CMakeLists.txt > >        |                      |--dir1-|                  >  |--- src1.h > >        |       

[CMake] cmake cannot find source file (new to cmake)

2018-12-19 Thread Cao, Lei via CMake
Hi, I tried to follow some examples and wrote some cmake files to build my code. But cmake is complaining that it cannot find a source file. Here is the code structure: Toplevel |- CMakeLists.txt |- src |--CMakeLists.txt |

Re: [CMake] Cannot find source file:

2017-06-24 Thread Dan Liew
On 24 June 2017 at 05:06, Sean Wayland wrote: > Hi all, > I am having trouble getting an application to build. > I keep getting this error "cannot find source file" > > > /Users/seanwayland/Desktop/CATSMAT-masterfri/catsmat/catsmat/Analysis/src/*.cpp > > This is the first

[CMake] Cannot find source file:

2017-06-23 Thread Sean Wayland
Hi all, I am having trouble getting an application to build. I keep getting this error "cannot find source file" /Users/seanwayland/Desktop/CATSMAT-masterfri/catsmat/catsmat/Analysis/src/*.cpp This is the first folder containing sources and when it doesn't find anything here it stops. There

Re: [CMake] Cannot find source file: *.rc

2011-05-27 Thread Michael Wild
On 05/26/2011 06:45 PM, aaron_wri...@selinc.com wrote: From: Michael Wild them...@gmail.com To: cmake@cmake.org Date: 05/25/2011 10:08 PM Subject: Re: [CMake] Cannot find source file: *.rc Sent by: cmake-boun...@cmake.org On 05/25/2011 11:40 PM, aaron_wri...@selinc.com wrote: I use mc.exe

Re: [CMake] Cannot find source file: *.rc

2011-05-27 Thread Michael Hertling
On 05/27/2011 11:46 AM, Michael Wild wrote: On 05/26/2011 06:45 PM, aaron_wri...@selinc.com wrote: From: Michael Wild them...@gmail.com To: cmake@cmake.org Date: 05/25/2011 10:08 PM Subject: Re: [CMake] Cannot find source file: *.rc Sent by: cmake-boun...@cmake.org On 05/25/2011 11:40 PM

Re: [CMake] Cannot find source file: *.rc

2011-05-26 Thread Aaron_Wright
From: Michael Wild them...@gmail.com To: cmake@cmake.org Date: 05/25/2011 10:08 PM Subject: Re: [CMake] Cannot find source file: *.rc Sent by: cmake-boun...@cmake.org On 05/25/2011 11:40 PM, aaron_wri...@selinc.com wrote: I use mc.exe to generate an *.rc file and some headers for my

[CMake] Cannot find source file: *.rc

2011-05-25 Thread Aaron_Wright
I use mc.exe to generate an *.rc file and some headers for my program. The *.rc file is listed as an output of a custom command and as a source to an executable. During configuration CMake tells me it can't find a source file and lists the *.rc file. I've check the generated property of the

Re: [CMake] Cannot find source file: *.rc

2011-05-25 Thread Michael Wild
On 05/25/2011 11:40 PM, aaron_wri...@selinc.com wrote: I use mc.exe to generate an *.rc file and some headers for my program. The *.rc file is listed as an output of a custom command and as a source to an executable. During configuration CMake tells me it can't find a source file and lists the

Re: [CMake] Cannot find source file.

2009-12-15 Thread Tim St. Clair
I would contend that this should be a warning vs. an error, which prevents generation. Cheers, Tim On Thu, Dec 10, 2009 at 3:18 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 10 December 2009, Tyler Roscoe wrote: On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote:

[CMake] Cannot find source file.

2009-12-10 Thread Tim St. Clair
Do all files *have* to be present during generation? Or is there some lazy evaluation? The file it is looking for is one of many gen'd files. It would be a pain if I had to update all the command outputs in order to create the deps. -- Cheers, Timothy St. Clair

Re: [CMake] Cannot find source file.

2009-12-10 Thread Tyler Roscoe
On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote: Do all files *have* to be present during generation? Or is there some lazy evaluation? Look at the GENERATED property for source files. The file it is looking for is one of many gen'd files. It would be a pain if I had to update

Re: [CMake] Cannot find source file.

2009-12-10 Thread Alexander Neundorf
On Thursday 10 December 2009, Tyler Roscoe wrote: On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote: Do all files *have* to be present during generation? Or is there some lazy evaluation? Look at the GENERATED property for source files. The file it is looking for is one of

[CMake] Cmake cannot find source file / Cmake can not determine linker language

2008-02-29 Thread Dario Figueira
Simply, in a subdirectory: ADD_LIBRARY (sift_h common.hxx) and altho the file common.hpp is there, he returns 'Cmake cannot find source file .../.../common.hxx for target sift_h tried extensions ... .hpp ...' if i change the CMakeLists in that subdirectory to ADD_LIBRARY (sift_h common.hpp) he

Re: [CMake] Cmake cannot find source file / Cmake can not determine linker language

2008-02-29 Thread Mike Jackson
I am guessing here, but I _think_ cmake really wants a .cpp/cxx/c file instead of a header file. -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Feb 29, 2008, at 11:21 AM, Dario Figueira wrote: ADD_LIBRARY (sift_h common.hpp)