Re: [CMake] cmake out of source build writes build files at source dirs?

2010-08-16 Thread Bo Thorsen
Hi Claus, If you didn't already, please post this to http://cmake.org/Bug instead. The CMake people usually don't take bug reports from this list. Bo. Den 28-07-2010 20:34, Claus Klein skrev: Today, I discovered than in the special case of a substituted PROJECT_SOURCE_DIR, all build files fo

[CMake] FindJava.cmake broken on x86_64 openSUSE 11.3

2010-08-16 Thread thidney thidney
Hi I hit quite strange problem, FindJava insist that my java is located in /usr/lib/jvm/java and try to execute java -verson from /usr/lib/jvm/java/bin/java which hast to fail. /usr/lib/jvm do not exist I had set env variables > echo $JAVA_HOME /usr/lib64/jvm/java > echo $JAVA_ROOT /usr/lib64/j

Re: [CMake] Weirdness with shared library, RPATH policy on MacOS

2010-08-16 Thread Martin Costabel
Chris Wolf wrote: [] It's interesting that you had a problem with this approach and python modules - I had a similar issue and ending up statically linking the module because I had two releases of the same shared library on the system. This is probably not a problem in cmake itself, but a prob

[CMake] Doesn't "make -k" work with CMake?

2010-08-16 Thread Johan Holmberg
Hi! I have been working on porting some applications built with CMake, and initially I get a lot of compile errors. I work on Linux and have been using the Makefile:s generated by CMake to build, using "make -k" at the top build directory. I assumed the the "-k" flag would take care of building "

Re: [CMake] Doesn't "make -k" work with CMake?

2010-08-16 Thread Andreas Pakulat
On 16.08.10 14:06:21, Johan Holmberg wrote: > I have been working on porting some applications built with CMake, and > initially I get a lot of compile errors. Maybe you should fix them? Usually compile-errors that occur on the first make call, but not subsequent ones are indications for lack of d

Re: [CMake] Doesn't "make -k" work with CMake?

2010-08-16 Thread Johan Holmberg
On Mon, Aug 16, 2010 at 2:25 PM, Andreas Pakulat wrote: > On 16.08.10 14:06:21, Johan Holmberg wrote: > >> I work on Linux and have been using the Makefile:s generated by CMake to >> build, using "make -k" at the top build directory. >> >> I assumed the the "-k" flag would take care of building "a

[CMake] can I force using objects1.rsp?

2010-08-16 Thread naryniecki
Hi, I use cmake to generate unix makefiles for two compilers: diab and cl.exe from MSVS. when I generate for MSVS, objects1.rsp is used for linking libraries. When I generate for diab this file is not used but I would like to because one of my directory contain a lot of source files. Is it poss

Re: [CMake] Cmake 2.8.2 Bug under windows

2010-08-16 Thread Brad King
On 08/13/2010 06:03 PM, J Decker wrote: > Yes, this patch fixes the problem thank you. Thanks for testing it. I've committed upstream. -Brad ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/

[CMake] can I create all/fast target?

2010-08-16 Thread naryniecki
Hi, for each target in Makefile generated by cmake there is another target without scanning dependencies. for example for target Radio there is Radio/fast. dependencies scanning take half of time in our building process. And we need to be able to rebuild everything as fast as possible. but ther

Re: [CMake] can I create all/fast target?

2010-08-16 Thread naryniecki
Hi, I only want add that when I run "make t1/fast t2/fast" from command line it works fine. Dnia 16 sierpnia 2010 15:33 naryniecki napisał(a): > Hi, > > for each target in Makefile generated by cmake there is another target > without scanning dependencies. for example for target Radio ther

Re: [CMake] trouble with quotation marks (cmake 2.6 for WinCE)

2010-08-16 Thread Michael Hertling
On 08/13/2010 09:49 PM, Ris Misner wrote: > Hi, > > I am new to using cmake, and trying to get a custom build command to embed > quotes for a project that I'm compiling in MS visual studio on a windows > machine. > > I have this in my cmake file: > > COMMAND ${FLEX_EXECUTABLE} -t ${WEBCORE_DIR

Re: [CMake] can I create all/fast target?

2010-08-16 Thread Daniel Nelson
On Monday 16 August 2010 7:47:33 am naryniecki wrote: > Hi, > > I only want add that when I run "make t1/fast t2/fast" from command line it > works fine. > > Dnia 16 sierpnia 2010 15:33 naryniecki napisał(a): > > Hi, > > > > for each target in Makefile generated by cmake there is another target

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread Brian Davis
> > --snip-- > > Ah you're on windows, make sure that you deselect the option to > associate the build rule with cu files as this does the wrong thing > when you're compiling the same file multiple times with different > defines. > --end snip-- > > Can you give me more info on this? I have looked

Re: [CMake] Visual Studio Express projects don't inherit from parent

2010-08-16 Thread Brian Davis
First off, I don't know the answer to your question, but I am curious how you are getting CMake to create inherited projects. What are the commands you are suing to create an inherited project in CMake? This is something I think I can use in my projects. __

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread Brian Davis
>From my current research into this problem it looks like the issue can be traced to these lines in FindCuda.cmake --snip-- # Get the list of definitions from the directory property get_directory_property(CUDA_NVCC_DEFINITIONS COMPILE_DEFINITIONS) message( "CUDA_NVCC_DEFINITIONS = ${CUDA_NVCC

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread James Bigler
On Mon, Aug 16, 2010 at 11:12 AM, Brian Davis wrote: > --snip-- >> >> Ah you're on windows, make sure that you deselect the option to >> associate the build rule with cu files as this does the wrong thing >> when you're compiling the same file multiple times with different >> defines. >> --end sn

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread James Bigler
On Mon, Aug 16, 2010 at 12:21 PM, Brian Davis wrote: > > From my current research into this problem it looks like the issue can be > traced to these lines in FindCuda.cmake > > --snip-- > # Get the list of definitions from the directory property > get_directory_property(CUDA_NVCC_DEFINITIONS

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread Brian Davis
James I was going to cc you on my latest findings. Thanks for giving me a "way out" with out having to patch the FindCUDA. I recently came to the same conclusion as your recent post. 1. CUDA_ATTACH_VS_BUILD_RULE_TO_ CUDA_FILE can really only cause problems with parallel builds. Are you performi

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread Brian Davis
One more thing for thoes interested DEFINITIONS_STRING is set in the following manner: --snip-- set( DEFINITIONS_STRING ) foreach( DEFINE_STR ${ARG_DEFINES} ) set( DEFINITIONS_STRING ${DEFINITIONS_STRING} -D${DEFINE_STR} ) endforeach() --end snip--

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread James Bigler
On Mon, Aug 16, 2010 at 2:17 PM, Brian Davis wrote: > James I was going to cc you on my latest findings. Thanks for giving me a > "way out" with out having to patch the FindCUDA. I recently came to the > same conclusion as your recent post. > > I just noticed your email in my FindCUDA filter fr

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread Brian Davis
>> I just noticed your email in my FindCUDA filter from the CMake list. I'm not sure why it didn't show up sooner. No worries. I let this thread die for a while while I worked on other things. I was back recently trying to fix this issue as I now want to compare the cpu/gpu recons separately. I

Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-08-16 Thread James Bigler
On Mon, Aug 16, 2010 at 4:21 PM, Brian Davis wrote: > 2. Have you tried to disable this flag? > Yes I have and it turns out I must in order for me to get my .cu file to be > compiled with correct -DDefines. > > I don't believe this is true. > --end snip > > I tried it enable/disabling the f

Re: [CMake] Visual Studio Express projects don't inherit from parent

2010-08-16 Thread Tron Thomas
On 08/16/2010 10:38 AM, Brian Davis wrote: First off, I don't know the answer to your question, but I am curious how you are getting CMake to create inherited projects. What are the commands you are suing to create an inherited project in CMake? This is something I think I can use in my proje

Re: [CMake] Visual Studio Express projects don't inherit from parent

2010-08-16 Thread John Drescher
On Mon, Aug 16, 2010 at 9:53 PM, Tron Thomas wrote: > On 08/16/2010 10:38 AM, Brian Davis wrote: >> >> First off, I don't know the answer to your question, but I am curious how >> you are getting CMake to create inherited projects.  What are the commands >> you are suing to create an inherited pro

Re: [CMake] Visual Studio Express projects don't inherit from parent

2010-08-16 Thread Tron Thomas
I don't think that is the problem. I have not changed that script for a long time and it was working fine. Only recently have I upgraded to CMake 2.8.2 and tried to configure the project for Visual C++ 2010 Express. Before that I was using CMake 2.8.1 with Visual C++ 2008 Express and everyth