Hello,
I am trying to compile a simple cuda program to an object file with
"cuda_wrap_srcs" using the following CMakeLists.txt:
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
> project (TEST C CXX)
> include(FindCUDA)
> cuda_wrap_srcs(hello OBJ hello_test hello-world.cu OPTIONS -O3)
*I see the
Did you use cygwin CMake or win32 CMake?
I think using win32 CMake with cygwin does not play well, one should
use cygwin CMake.
I do use the Cygwin CMake.
Thanks
Ajay
On Mon, Mar 19, 2012 at 11:28 AM, Eric Noulard wrote:
> 2012/3/19 Ajay Panyala :
> > Did you try playing ar
at 11:00 AM, Eric Noulard wrote:
> 2012/3/19 Ajay Panyala :
> > Please notice the linebreak after Foo, this causes the linker to fail,
> > saying it can not find "C:/Projects/Foo".
> >
> > I guess this is a cmake bug, but I need to find a workaround for this
Please notice the linebreak after Foo, this causes the linker to fail,
saying it can not find "C:/Projects/Foo".
I guess this is a cmake bug, but I need to find a workaround for this one.
I am using cmake 2.8.2 on Windows 7.
I have the exact same whitespace issue with a custom command. I am using
Hello,
Is it possible to specify complex behavior for
determining if a test was successful.
For example, if we have
add_test(Differ executable args)
I want to specify that the test named Differ
is successful if the output obtained by running
the specified executable matches a certain file,
i.e
Hello,
I am trying to upload test results from my laptop to a server where CDash
is setup.
make Experimental gives the following
Submit files (using http)
Using HTTP submit method
Drop site:http://999.99.999.999/CDash/submit.php?project=test
Uploaded: /home/user/test/build/Testing/20120316-2242/
DEPENDS ${PROJECT_SOURCE_DIR}/test.java
And it works as expected - that is recompiles test.java only if it was
modified.
Thanks
Ajay
On Tue, Mar 6, 2012 at 11:44 AM, David Cole wrote:
> On Tue, Mar 6, 2012 at 1:22 PM, Ajay Panyala wrote:
> > add_custom_comma
gt;
>
> It looks like test.java is a generated file, so depending on how you
> generate it, you also need to set the GENERATED source file property to
> TRUE in order for this to work.
>
> HTH
>
> Michael
>
> On 03/06/2012 04:27 PM, Ajay Panyala wrote:
> > That is
wrote:
> 2012/3/6 Ajay Panyala :
> > Hello,
> >
> > Is there anyway that cmake could figure out the shell (bash,csh,..)
> > that is being use when cmake is invoked on the command line ?
>
> May be you can check $ENV{SHELL} ?
> Why would you like to do that?
>
Hello,
Is there anyway that cmake could figure out the shell (bash,csh,..)
that is being use when cmake is invoked on the command line ?
Thanks
Ajay
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages
You are right. Once test.g is modified, just running make wont rebuild it.
I have to run cmake again and then make since the IF is evaluated only
when cmake is run.
Thanks
Ajay
On Sun, Mar 4, 2012 at 7:35 PM, Michael Hertling wrote:
> On 03/05/2012 01:59 AM, Ajay Panyala wrote:
> > I u
he initial run of make test.g is not present in the build folder,
since it
was never copied before. For this case, I have another IF(EXISTS
build/test.g) conditional
which copies it from src to build folder and then executes it.
Thanks
Ajay
On Sun, Mar 4, 2012 at 7:35 PM, Michael Hertling wrote
Mar 4, 2012 at 4:05 PM, Michael Hertling wrote:
> On 03/04/2012 08:02 PM, Ajay Panyala wrote:
> > The following project is a boiled-down version of yours but doesn't
> > need any programs except for CMake - that's what I actually meant
> > with "minimal but com
#x27;t do that.
Yes, it generates the files in the source dir itself (where test.g is
present)
I now modified CMakeLists to copy test.g to the project build folder and
run it there. The new CMakeLists is at
http://pastie.org/private/p1yi0l8so9cqimqlywfmhw
Thank You
Ajay
On Sun, Mar 4, 2012 at 1
Please provide a minimal but complete example for this issue.
Please find it in the following link
http://pastie.org/private/pd13u33s9xpfihf2dbzc1q
Thank You
Ajay
On Sat, Mar 3, 2012 at 3:54 PM, Michael Hertling wrote:
> On 03/04/2012 12:14 AM, Ajay Panyala wrote:
> > No, it wouldn
12 10:36 PM, Ajay Panyala wrote:
> > Try "cmake -E copy_if_different ..."
> >
> > cmake -E copy_if_different build/test1.c build/tests/test1.c
> >
> > That would work when make is run atleast once.
> > When running make for the 1st time test1.c was
No, it wouldn't;
Thanks. It works now. I might have done something wrong earlier.
- Ajay
On Sat, Mar 3, 2012 at 2:47 PM, Michael Hertling wrote:
> On 03/03/2012 10:36 PM, Ajay Panyala wrote:
> > Try "cmake -E copy_if_different ..."
> >
> > cmake -E copy_if
t file and that would result in an error halting
the make process.
Thanks
Ajay
On Sat, Mar 3, 2012 at 1:20 PM, Hendrik Sattler wrote:
> Am Samstag, 3. März 2012, 21:41:49 schrieb Ajay Panyala:
> > I have a custom target which runs a command to generate
> > a C source file say test1.c
Hello,
I have a custom target which runs a command to generate
a C source file say test1.c
ADD_CUSTOM_TARGET(TestGen ALL
COMMAND genExec ${PROJECT_SOURCE_DIR}/Main.java
DEPENDS ${PROJECT_SOURCE_DIR}/Main.java
)
And I have a custom command that moves the generated *test1.c *
to a new directory in
19 matches
Mail list logo