Re: [CMake] [CTest] CTest -S script cannot be found on Windows network drive (solved)

2011-12-12 Thread m.hergarden
On 12/09/2011 04:47 PM, m.hergarden wrote: On 12/09/2011 04:30 PM, David Cole wrote: On Fri, Dec 9, 2011 at 9:30 AM, m.hergarden wrote: I have two buildservers: a Linux box and a Windows box. I now have a buildscript that does a svn checkout in the homedir of the Linux build user. This directo

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Michael Wild
It needs to exist **at the end** of the CMakeLists.txt file containing the target. If you don't want to do that (or can't, as in your case), you can use the LINK_FLAGS target property instead. HTH Michael On 12/12/2011 11:39 PM, Robert Dailey wrote: > I have attached a small CMake project that r

[CMake] FindLAPACK problem

2011-12-12 Thread Tim Gallagher
Hi, I sent this out awhile ago, saying it couldn't find the MKL LAPACK. But I think the problem may be bigger than that because it can't find non-MKL lapack for me either. I get: -- A library with BLAS API found. -- A library with BLAS API found. CMake Error at /usr/share/cmake/Modules/FindLAPA

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Robert Dailey
I forgot to say that the main issue is that my /NODEFAULTLIB link flag isn't showing up in visual studio. - Robert Dailey On Mon, Dec 12, 2011 at 4:10 PM, Robert Dailey wrote: > Another issue... > > At what point is it most important for the values of > CMAKE_SHARED_LINK_FLAGS to exist

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Robert Dailey
Another issue... At what point is it most important for the values of CMAKE_SHARED_LINK_FLAGS to exist? I set the value of this variable before my call to add_library(), however after that at some point the flags will get reverted because I'm stepping out of function scope. Does it need to exist u

Re: [CMake] hear hear

2011-12-12 Thread Alexander Neundorf
On Monday 12 December 2011, Johannes Zarl wrote: > On Tuesday, 6. December 2011, 17:27:47, Daniel Dekkers wrote: > > On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: > > > I think if the CMake community took a vote we could probably come up > > > with an "Exemplar" Find*.cmake file that is good

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Michael Wild
On 12/12/2011 09:13 PM, Robert Dailey wrote: > On Mon, Dec 12, 2011 at 2:10 PM, David Cole > wrote: > > Apparently, they are undocumented, but there are also: > > CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS (and their > per-config variants)

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread David Cole
On Mon, Dec 12, 2011 at 3:15 PM, Robert Dailey wrote: > On Mon, Dec 12, 2011 at 2:13 PM, Robert Dailey wrote: >> >> On Mon, Dec 12, 2011 at 2:10 PM, David Cole >> wrote: >>> >>> Apparently, they are undocumented, but there are also: >>> >>> CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS

Re: [CMake] Changing Package Top level directory name

2011-12-12 Thread Eric Noulard
2011/12/12 vivek goel : > hi, > how can I change the name of top level directory of cpack. Without > changing CPACK_PACKAGE_FILE_NAME ? > > I want package name to be in format of cmake-2.5.0-Linux-i686 only. > But I want to change the root (top directory ) name inside package. There is a bug relat

Re: [CMake] Setting environment variables in custom command

2011-12-12 Thread Michael Wild
On 12/12/2011 09:05 PM, Robert Dailey wrote: > On Mon, Dec 12, 2011 at 1:53 PM, Michael Wild > wrote: > > > CMake script would imply that it runs as part of the configuration > > process. I can't build an installer until all binaries are > compiled and >

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Robert Dailey
On Mon, Dec 12, 2011 at 2:13 PM, Robert Dailey wrote: > On Mon, Dec 12, 2011 at 2:10 PM, David Cole wrote: > >> Apparently, they are undocumented, but there are also: >> >> CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS (and their >> per-config variants) for SHARED and MODULE library tar

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Robert Dailey
On Mon, Dec 12, 2011 at 2:10 PM, David Cole wrote: > Apparently, they are undocumented, but there are also: > > CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS (and their > per-config variants) for SHARED and MODULE library targets as well. > > Use CMAKE_SHARED_LINKER_FLAGS instead. Tha

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread David Cole
Apparently, they are undocumented, but there are also: CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS (and their per-config variants) for SHARED and MODULE library targets as well. Use CMAKE_SHARED_LINKER_FLAGS instead. HTH, David On Mon, Dec 12, 2011 at 3:00 PM, Robert Dailey wrote

Re: [CMake] Setting environment variables in custom command

2011-12-12 Thread Robert Dailey
On Mon, Dec 12, 2011 at 1:53 PM, Michael Wild wrote: > > CMake script would imply that it runs as part of the configuration > > process. I can't build an installer until all binaries are compiled and > > linked, so it needs to be a target in visual studio. > > Wrong. > > add_custom_command( > CO

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Michael Wild
On 12/12/2011 09:00 PM, Robert Dailey wrote: > I need a version of CMAKE_EXE_LINKER_FLAGS for shared libraries. I need > to specify /NODEFAULTLIB for a shared library (DLL) that I'm building, > but it doesn't seem that CMAKE_EXE_LINKER_FLAGS is used by shared > library projects generated by CMake f

[CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-12 Thread Robert Dailey
I need a version of CMAKE_EXE_LINKER_FLAGS for shared libraries. I need to specify /NODEFAULTLIB for a shared library (DLL) that I'm building, but it doesn't seem that CMAKE_EXE_LINKER_FLAGS is used by shared library projects generated by CMake for visual studio. Any suggestions? - Robert

Re: [CMake] Setting environment variables in custom command

2011-12-12 Thread Michael Wild
On 12/12/2011 08:46 PM, Robert Dailey wrote: > On Mon, Dec 12, 2011 at 1:31 PM, Michael Wild > wrote: > > On 12/12/2011 08:28 PM, Robert Dailey wrote: > > Hi, > > > > I'm creating a custom target in CMake 2.8.7 RC1 and running it in > Visual > > S

[CMake] target dependency in subdirectory not found

2011-12-12 Thread Jos van den Oever
I'm trying to get get CMake to do the equivalent from this Makefile. I'm using cp in this simple example, but want to use different commands in my project. ==Makefile== srcdir=.. hij: a/efg cp a/efg hij a/efg: $(srcdir)/a/abc -mkdir a cp $(srcdir)/a/abc a/efg == For this I a

Re: [CMake] Setting environment variables in custom command

2011-12-12 Thread Robert Dailey
On Mon, Dec 12, 2011 at 1:31 PM, Michael Wild wrote: > On 12/12/2011 08:28 PM, Robert Dailey wrote: > > Hi, > > > > I'm creating a custom target in CMake 2.8.7 RC1 and running it in Visual > > Studio 2008. I set an environment variable called BUILDBIN in the custom > > command but for some reason

Re: [CMake] Setting environment variables in custom command

2011-12-12 Thread Michael Wild
On 12/12/2011 08:28 PM, Robert Dailey wrote: > Hi, > > I'm creating a custom target in CMake 2.8.7 RC1 and running it in Visual > Studio 2008. I set an environment variable called BUILDBIN in the custom > command but for some reason my scripts that I invoke are not picking up > that environment va

[CMake] Setting environment variables in custom command

2011-12-12 Thread Robert Dailey
Hi, I'm creating a custom target in CMake 2.8.7 RC1 and running it in Visual Studio 2008. I set an environment variable called BUILDBIN in the custom command but for some reason my scripts that I invoke are not picking up that environment variable. Am I doing something wrong? These custom commands

[CMake] Changing Package Top level directory name

2011-12-12 Thread vivek goel
hi, how can I change the name of top level directory of cpack. Without changing CPACK_PACKAGE_FILE_NAME ? I want package name to be in format of cmake-2.5.0-Linux-i686 only. But I want to change the root (top directory ) name inside package. regards Vivek Goel -- Powered by www.kitware.com Visi

Re: [CMake] Copy a input file from src folder to EXECUTABLE_OUTPUT_PATH

2011-12-12 Thread Michael Wild
On 12/12/2011 04:29 PM, Totte Karlsson wrote: >> >> At build time: >> > >> ADD_CUSTOM_COMMAND(TARGET OneOfYourExecutables >> COMMAND ${CMAKE_COMMAND} -E copy_if_different >> //input.txt $) >> ADD_CUSTOM_COMMAND(TARGET AnotherExecutable >> COMMAND ${CMAKE_COMMAND} -E copy_if_diff

Re: [CMake] Copy a input file from src folder to EXECUTABLE_OUTPUT_PATH

2011-12-12 Thread Totte Karlsson
At build time: ADD_CUSTOM_COMMAND(TARGET OneOfYourExecutables COMMAND ${CMAKE_COMMAND} -E copy_if_different //input.txt $) ADD_CUSTOM_COMMAND(TARGET AnotherExecutable COMMAND ${CMAKE_COMMAND} -E copy_if_different //input.txt $) Personally, I'd prefer the latter as

[CMake] Visual Studio 2010 default property sheets

2011-12-12 Thread David Hunter
Sorry if this a re-post had mail issue. I'm not sure if this has been discussed much within the CMake developer community but I wanted to give some thoughts on the use of Visual Sudio property sheets and some suggestion for CMake. As far as I know this is only relevant to Visual Studio 10 and henc

Re: [CMake] Problem Compiling on Solaris 10 x86

2011-12-12 Thread Christopher Hylarides
I already had the output for VERBOSE=1 :-) Here is the output of CMakeCache.txt: # cat ./cmake-2.8.6/CMakeCache.txt|grep -i curse //Build the CMake Curses Dialog ccmake BUILD_CursesDialog:BOOL=ON CMAKE_FORM_BINARY_DIR:STATIC=/build/packages/cmake/cmake-2.8.6/Source/CursesDialog/form CMAKE_FORM_

Re: [CMake] Java support - install with components

2011-12-12 Thread Allen D Byrne
andreas, Yes I agree the COMPONENT should be optional, but handled in the same manner as the install command - in fact if the function is to incorporate the INSTALL command then we must have a way to pass the same options to the INSTALL command that the INSTALL command supports. Maybe, we ne

Re: [CMake] Top level target depending on a file

2011-12-12 Thread Eric Noulard
2011/12/12 Alexander Broekhuis : > Hi, > > Can anyone help me with this? I haven't found a proper solution myself yet.. The fact is there is no "builtin" support for what you ask see: http://public.kitware.com/Bug/view.php?id=8438 But the thing is. Why don't you create a top level target using a

Re: [CMake] print content of linking script ?

2011-12-12 Thread Eric Noulard
2011/12/12 Ilias Miroslav : > Dear Eric, > > I tried the "file(READ..." cmake command, but it does not work during CMake > buildup -  the link.txt file is ready for reading only after ending the > buildup what is not my case. > > Why I need it ? > > Some time ago I reported problem about missing

Re: [CMake] Top level target depending on a file

2011-12-12 Thread Alexander Broekhuis
Hi, Can anyone help me with this? I haven't found a proper solution myself yet.. 2011/12/8 Alexander Broekhuis > Hi all, > > In my project, some top level targets depend on simple text files. These > targets produce a zip file as output, this is done using a custom command > with a post-build t

Re: [CMake] print content of linking script ?

2011-12-12 Thread Ilias Miroslav
Dear Eric, I tried the "file(READ..." cmake command, but it does not work during CMake buildup - the link.txt file is ready for reading only after ending the buildup what is not my case. Why I need it ? Some time ago I reported problem about missing static library: http://www.cmake.org/piperm

Re: [CMake] hear hear

2011-12-12 Thread Johannes Zarl
On Tuesday, 6. December 2011, 17:27:47, Daniel Dekkers wrote: > On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: > > I think if the CMake community took a vote we could probably come up with > > an "Exemplar" Find*.cmake file that is good for someone trying to > > develop a new one. > > Yes ple