Re: [CMake] CMake and shared|static/release|debug?

2014-02-08 Thread Littlefield, Tyler
hello: thanks all for the help--I really appreciate it. that cleaned up my file quite a lot and was exactly what I was aiming for. Thanks again, On 2/5/2014 6:17 AM, Johannes Zarl wrote: Hi, On Tuesday, 4. February 2014, 23:41:55, Littlefield, Tyler wrote: I've tried this a few diff

[CMake] CMake and shared|static/release|debug?

2014-02-04 Thread Littlefield, Tyler
Hello all: I've tried this a few different ways and ran into issues. If someone wouldn't mind pointing out where I'm going wrong, I would appreciate it. (for example if there's a better way to do what I'm trying). Thanks, cmake_minimum_required(VERSION 2.8) project(BLOXWEB) #include addition

[CMake] help with a current CMake

2013-12-27 Thread Littlefield, Tyler
Hello: I am working on trying to figure out how to do release/debug static/shared builds. If anyone could help with my setup I'd appreciate it. Here is the CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(BLOXWEB) #include additional modules set(CMAKE_MODULE_PATH ${BLOXWEB_SOURCE_DI

Re: [CMake] Standard template for building and installing a library

2013-09-10 Thread Littlefield, Tyler
On 9/10/2013 6:43 PM, Matthew Woehlke wrote: On 2013-09-10 17:38, Littlefield, Tyler wrote: First, I can create a demo directory and from there I can have a cmakelists.txt per demo. Is there a way somehow to link to the generated static library? Sounds like you are looking for

Re: [CMake] Standard template for building and installing a library

2013-09-10 Thread Littlefield, Tyler
ke the debug/release build work, as well as to allow to let this install. I need to install libxlog.a and the include directory as well to includedir/xlog/*. Is there a typical method to do this? Thanks, On 9/10/2013 1:34 AM, Micha Hergarden wrote: On 09/09/2013 10:07 PM, Littlefield, Tyler wr

[CMake] Standard template for building and installing a library

2013-09-09 Thread Littlefield, Tyler
Hello: I had a quick question. Is there a sort of standard template to build a library? I've been looking around and an mot really sure where to go--most of the tutorials show only using one file. I'd also like to know if there's a way to build demos and tests. I'm thinking my setup will look s

Re: [CMake] CDash using xml directly

2011-10-11 Thread Tyler
st XML and upload it to the server. I'm sure there are a million ways to do this with python, or you could use wget/curl. tyler On Tue, Oct 11, 2011 at 7:02 AM, Paul Anton Letnes wrote: > Hi! > > I am interested in using the CDash (e.g. my.cdash.org) infrastructure for > running

Re: [CMake] ctest_update fails

2011-10-11 Thread Tyler
Have you tried using ctest -VV or ctest --debug to find out what's really going on? tyler On Mon, Oct 3, 2011 at 4:36 PM, Mike Owens wrote: > ** > ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE update_result) > is producing this error. > > *Update

Re: [CMake] ExternalProject sometimes fails due to cmTryCompileExec

2011-08-30 Thread Tyler
io noisier than it should be, I'd love to hear about it. Thanks, tyler ### ### MINIMAL REPRO CASE ### ### CMakeLists.txt cmake_minimum_required (VERSION 2.8) project(test) # Hardcode your own path to qmake or remove this and let FindQt4 discover it in your PATH or whatever. set (QT_QMAK

[CMake] ExternalProject sometimes fails due to cmTryCompileExec

2011-08-25 Thread Tyler
one used by the overarching build system) and the satellite CMakeCache (the one created and used by the ExternalProject) are correctly pointing to the Visual Studio versions of cl and link. - This problem generally manifests as the first build of the day. Our schedule of automated builds looks l

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-14 Thread Tyler
I believe you're way too late for 2.8.5, but there should be a call for bugs for 2.8.6 coming along shortly after 2.8.5 is released. tyler On Tue, Jun 14, 2011 at 4:50 AM, Johannes Stallkamp wrote: > Hi, > > Would be great if > > http://www.cmake.org/Bug/view.php?id=12260 &g

Re: [CMake] Copying files (different name)

2011-05-26 Thread Tyler
Don't know if file() will work but configure_file() will. You might want the NO_REPLACE flag or whatever it's called to prevent accidental variable interpolation. tyler On Thu, May 26, 2011 at 4:46 PM, Nicholas Yue wrote: > Hi, > >    With the FILE ( COPY .. DESTINATION) comm

Re: [CMake] add_dependencies behaviuor

2011-05-18 Thread Tyler
he problem that you're seeing? Can you show us some output from a build that demonstrates this problem? The next step is to create a minimum case that reproduces the problem you're seeing. tyler On Wed, May 18, 2011 at 2:27 AM, Andrea Galeazzi wrote: > I've multiple execu

Re: [CMake] Setting special visual studio options from CMake

2011-05-18 Thread Tyler
I think CMAKE_SHARED_LINKER_FLAGS is a cache variables, so you need to use the CACHE flag (and probably the FORCE flag) to set(). You can verify this by inspecting ${CMAKE_BINARY_DIR}/CMakeCache.txt. Consult the docs for more details. tyler On Wed, May 18, 2011 at 6:32 AM, Gerhard Gappmeier

Re: [CMake] Rename the output of cpack

2011-05-17 Thread Tyler
k itself in ${CMAKE_BINARY_DIR}. That target could have a post-build rule that does the rename. Maybe someone else has better ideas but that's the hack that springs to mind. hth, tyler On Tue, May 17, 2011 at 11:18 AM, James Bigler wrote: > CPack allows me to configure the basename of

Re: [CMake] Intermediate directory

2011-05-13 Thread Tyler
On Fri, May 13, 2011 at 5:46 AM, gekso wrote: > My problem is to change Intermediate directory and message > (${CMAKE_CFG_INTDIR}) returns "$(Configuration)" to output.. $(Configuration) will be filled in at build time by the IDE with the user-selected configurat

Re: [CMake] cmake logs

2011-05-10 Thread Tyler
Please reply to the list so others can see the answer. Thanks, tyler On Tue, May 10, 2011 at 8:19 AM, Anton Sibilev wrote: > Already tried this, it works. But just for cmake I've found this - set > (CMAKE_VERBOSE_MAKEFILE true) > > 2011/5/10 Tyler : >> Your question is ha

Re: [CMake] cmake logs

2011-05-10 Thread Tyler
Your question is hard to understand, but I think you want "make VERBOSE=1". tyler On Tue, May 10, 2011 at 5:16 AM, Anton Sibilev wrote: > Hi All! Please, help me to find in cmake's structure full logs of > compilation/linkage. I use "

Re: [CMake] manifest version mismatch with VS 2008 and InstallRequiredSystemLibraries

2011-05-09 Thread Tyler
rsions of VS and components I don't use (MFC, ATL, etc.). Also, it seems that no one else has this problem, so making the solution general for the community would not be useful. Instead I hacked together the function below. Thanks, tyler # This is a dumb version of the CMake module InstallR

Re: [CMake] Conditional post test behavior

2011-05-09 Thread Tyler
I think the canonical way to do this is by handling this logic in a wrapper script. add_test -> wrapper script -> run test -> check status and delete if OK hth, tyler On Sat, May 7, 2011 at 3:13 PM, Belcourt, K. Noel wrote: > Hi, > &

Re: [CMake] Adding notes to a CTestScript.cmake?

2011-05-09 Thread Tyler
Try searching for "notes" on this page: http://www.cmake.org/cmake/help/ctest-2-8-docs.html On Mon, May 9, 2011 at 5:06 AM, NoRulez wrote: > Hi, > > can anyone tell me how I can add CDash notes which i can fill up in a > CTestScript file? > > The Problem is that i want to add the library version

Re: [CMake] manifest version mismatch with VS 2008 and InstallRequiredSystemLibraries

2011-05-03 Thread Tyler
Yes, I verified the manifests in each binary with strings + grep. Everything is produced with a version of 9.0.21022. tyler On Tue, May 3, 2011 at 8:49 AM, John Drescher wrote: > On Tue, May 3, 2011 at 11:43 AM, Tyler wrote: >> My project makes use of the CMake/CPa

[CMake] manifest version mismatch with VS 2008 and InstallRequiredSystemLibraries

2011-05-03 Thread Tyler
what else can I try? Thanks, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_F

Re: [CMake] CMake & win32 rc files

2011-05-03 Thread Tyler
It doesn't work if you just include your icon file as one of the source files in the call to add_executable()/add_library()? What do you mean by "cross building"? Do you mean cross-compiling? If so, from what platform to win32? tyler On Tue, May 3, 2011 at 6:53 AM, Gabrie

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
Your syntax is wrong: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process execute_process (COMMAND ${command1} ...) tyler On Mon, May 2, 2011 at 11:50 AM, David Doria wrote: > On Mon, May 2, 2011 at 2:27 PM, Tyler wrote: >> You could use -D flags (cmake -D

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
You could use -D flags (cmake -Dvar=value -P script.cmake). On Mon, May 2, 2011 at 11:07 AM, David Doria wrote: > On Mon, May 2, 2011 at 1:57 PM, David Cole wrote: >> script.cmake: >> execute_process(x) >> execute_process(y) >> >> CMakeLists.txt: >> add_test(NAME MyTest COMMAND ${CMAKE_COMMAND}

Re: [CMake] Running two executables sequentially in a test

2011-05-02 Thread Tyler
I believe tests can have dependencies. Failing that, you can use the COST property to control test execution order. hth, tyler On Mon, May 2, 2011 at 10:18 AM, David Doria wrote: > I am trying to run an executable that produces an output image, then > compare this image to a baseline u

Re: [CMake] Problem piping 'execute_process' output

2011-04-29 Thread Tyler
be a problem but AFAIK you can't rely on the order to be correct because the OS will be buffering the output anyway (unless you're handling that in some other way). Maybe you could insert a timestamp at the beginning of each line to facilitate sorting later? Just some ideas. tyler ___

Re: [CMake] DESTDIR behaviour with different variable name

2011-04-11 Thread Tyler
o this route, check the archives because of the whole _INITIALIZED_TO_DEFAULT aspect of that particular cache variable. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Pl

Re: [CMake] [cmake-developers] Bug fix requests for the *next* release of CMake...

2011-03-29 Thread Tyler
Eric, those all look good, but I'd like to particularly +1 this one: http://public.kitware.com/Bug/view.php?id=8438 I've hacked around this deficiency in several places and I'm sure other users have as well. It would be nice to replace these hacks with a nice simple solution. Th

Re: [CMake] Too many packages being created for my project with CPack

2011-03-25 Thread Tyler
I just use: set (CPACK_GENERATOR "ZIP") and that seems to work. I think those CPACK_BINARY_* variables you're setting are only meaningful in CPack's context, not in CMake's (i.e. those vars are what CMake writes out in CPackConfig.cmake for Cpack's later use). ht

Re: [CMake] CPack and fixup_bundle

2011-03-17 Thread Tyler
mean. hth, tyler On Thu, Mar 17, 2011 at 2:14 PM, Simon Drouin wrote: > I'm trying to use CPack to create a .tar.gz package on linux. I use > fixup_bundle from the bundle utility to copy and fix Qt libraries to the > bundle. > > When I use simple 'make install&#x

Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Tyler
Enrique, I think the -Werror flag is the problem: http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html "-Werror Make all warnings into errors." hth, tyler On Mon, Mar 14, 2011 at 2:04 PM, Enrique Izaguirre wrote: > Hi Alex, > > This is the whole output from the m

Re: [CMake] adding a custom command with the file name as a target

2011-03-11 Thread Tyler
The target in the Makefile is created with the add_custom_target() call. So just change yours to: add_custom_target(hello.bin ALL DEPENDS hello.bin) hth, tyler On Fri, Mar 11, 2011 at 7:58 AM, Jim Newsome wrote: > I'd like to do something like add_custom_command, with the output file &

Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path

2011-03-11 Thread Tyler
I believe the canonical answer is to write the command line you wish to execute into a file and use install(SCRIPT ...) instead of install(CODE ...). tyler On Fri, Mar 11, 2011 at 7:14 AM, Urbach, Marcel [Rohmann GmbH] wrote: > Hi, > > I am using Windows 7 and I have tried to re

Re: [CMake] feed parsed information from source files into compile process

2011-02-09 Thread Tyler Roscoe
would use execute_process() to run your python script at configure time. It would deposit its results into a file, which you could then include() (or file(READ ...)). hth, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Tyler Roscoe
n you solve that one and I'll nominate you for some kind of prize in software engineering :). Anyway, as someone with an IT'ish background who does menial things like configure CI servers, my advice probably isn't worth much to a real developer like yourself. I'll go back to stu

Re: [CMake] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-03 Thread Tyler Roscoe
m thinking we > could define "backlog" as: > status=acknowledged >AND > assigned to="" (empty string, none) WORKSFORME[1]. Is there a way to display a note about this non-standard convention of the CMake bug tracker on the bug tracker itself? I could see new us

Re: [CMake] link against a library under windows

2011-01-31 Thread Tyler Roscoe
w do I add several paths in > link_directories under windows ? Your approach is fine. I would inspect the value of LINK_LIBS that is passed to target_link_libraries() to make sure it's what you expect it to be. > Do I need to add a ".lib" s

Re: [CMake] using svn credentials inside ctest script

2011-01-28 Thread Tyler Roscoe
s in revision control, but probably not really really secure either. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ a

[CMake] ctest returns 255 after running ctest_test() if no tests are available

2011-01-27 Thread Tyler Roscoe
ld have to do a test like: if (PLATFORM MATCHES opensuse9 AND PRODUCT_NAME MATCHES addons) set (do_not_run_tests TRUE) endif () which is undesirable. Any other ideas on how I can proceed here? Thanks, tyler ___ Powere

Re: [CMake] using svn credentials inside ctest script

2011-01-27 Thread Tyler Roscoe
On Thu, Jan 27, 2011 at 08:40:14AM -0800, Tyler Roscoe wrote: > On Thu, Jan 27, 2011 at 04:11:35AM -0800, girish hilage wrote: > >    find_program(CTEST_SVN_COMMAND NAMES svn) > >    set(CTEST_UPDATE_COMMAND "${CTEST_SVN_COMMAND}") > >    set(CTEST_UPDATE_

Re: [CMake] using svn credentials inside ctest script

2011-01-27 Thread Tyler Roscoe
version handle the username/password; it will cache them if ask it to. The advantage is that you don't have to hardcode passwords into your build scripts. The disadvantage is this is something you'll need to take care of for all machines/accounts that do automated builds. tyler __

Re: [CMake] CMake Function, how do I pass out strings or lists?

2011-01-26 Thread Tyler Roscoe
;HELLO!") > > message("outside func testo=${testo}") function() creates a new scope, so you need PARENT_SCOPE on the set() in set_a_var(). tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

Re: [CMake] continuous builds and CTEST_ELAPSED_TIME

2011-01-20 Thread Tyler Roscoe
e uses in production, my guess to the origin of 10 hours is that this time period was useful for Kitware's specific circumstances. As to why "everyone" uses that number, I think your guess is exactly right. tyler ___ Powered by www.kitware.

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Tyler Roscoe
(REGEX REPLACE) command. Not that I'm signing up for this job, but +1 on this suggestion. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

Re: [CMake] cmake and shell commands

2011-01-17 Thread Tyler Roscoe
On Mon, Jan 17, 2011 at 06:24:58PM +, mark...@email.it wrote: >ln -s lib/libfreenect.so.0.0 lib/libfreenect.so For this specific problem, check out: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION > Should I use: add_custom_command ? For the general problem of

Re: [CMake] packaging after success testing

2011-01-07 Thread Tyler Roscoe
message ("INFO: Packaging disabled.") endif () [Stanza about publishing, aka copying build artifacts to the archive for later use, goes here using a similar pattern.] ... hth, tyler ___ Powered by www.kitware.com

Re: [CMake] how to submit customized test report

2011-01-04 Thread Tyler Roscoe
/Testing/${xml_dir}") The idea for this comes from Clinton Stimpson. See also: http://permalink.gmane.org/gmane.comp.programming.tools.cmake.user/27268 hth, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensou

Re: [CMake] Most convenient way to pass information from dashboard script to cmake script

2010-12-28 Thread Tyler Roscoe
binary directory ${CTEST_BINARY_DIRECTORY}. Writing new cache and starting fresh build.") write_cache () endif () hth, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/ope

Re: [CMake] echo in execute_process

2010-12-28 Thread Tyler Roscoe
r some reason. If I needed it, wouldn't it be pretty obvious which directory to use? tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic an

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Tyler Roscoe
- any help here, is this example maybe outdated or > something else (am using CMake 2.8.3)? It's impossible to say what's going wrong without details. What does the output from fixup_bundle look like? How do you call fixup_bundle from your CMakeLists? tyler _

Re: [CMake] Please Help - Find HDF5 module on windows isn't finding

2010-12-21 Thread Tyler Roscoe
t; finding it. I've tried specifying components as well and still nothing. You can add some message() commands to FindHDF5.cmake to inspect things. You could also try cmake --trace to get debug output (note: the output is extremely verbose). tyler _

Re: [CMake] Questions about FFTW as an External Project within ITK

2010-12-17 Thread Tyler Roscoe
pend on the FFTW > external project. If I do a sequential build, FFTW does get built > before everything else, but if I do a parallel build, FFTW builds > concurrent with the rest of ITK. This could definitely fail. If you're using FFTW as an external project, can't y

Re: [CMake] Trying to setup make folder configuration on linux

2010-12-10 Thread Tyler Roscoe
ake:36 (FILE): > file INSTALL cannot find "/root/massmailer/massmailer/massmailer". > Call Stack (most recent call first): > cmake_install.cmake:37 (INCLUDE) We'll need to see your CMakeLists.txt to help further, but it's

Re: [CMake] CMake 2.8.4 release scheduled for next month

2010-12-09 Thread Tyler Roscoe
e the bug I reported is a regression, so maybe it can get through the gate regardless. Thanks, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

Re: [CMake] CMake 2.8.4 release scheduled for next month

2010-12-09 Thread Tyler Roscoe
So are you ready to start collecting candidate bugs for 2.8.4? I nominate this one! http://www.vtk.org/Bug/view.php?id=11561 Thanks, tyler On Thu, Dec 09, 2010 at 03:37:16PM -0500, David Cole wrote: > We are still planning to start the release candidate cycle for CMake > 2.8.4 on Wed. J

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-09 Thread Tyler Roscoe
/INCREMENTAL because Bullseye doesn't get along with it. We experienced LNK1000 errors with this combination. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please kee

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-09 Thread Tyler Roscoe
-bit Windows. if (TP_PLATFORM MATCHES "${TP_WIN32}") string (REPLACE "/ZI" "/Zi" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) endif () # Disable this warning: # warning LNK4098: defaultlib 'MSVCRT' conflicts with use of othe

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-09 Thread Tyler Roscoe
Ok I've added a link to this thread and the patch below to the bug: http://www.vtk.org/Bug/view.php?id=11561 Without feedback from anyone, I will assume that I have done an awesome, production-ready job and will await the call for patches to add to CMake 2.8.4. Thanks, tyler On Tue, D

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-07 Thread Tyler Roscoe
test should run second in a fresh # binary directory. Otherwise, since it failed previously, it should run first. add_test (i_should_fail_and_run_second_or_first ${CMAKE_COMMAND} -E echo i should fail and run second) set_tests_properties (i_should_fail_and_run_second_or_first PROPERTI

Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread Tyler Roscoe
E_CTEST_COMMAND} with your preferred arguments. hth, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://ww

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-02 Thread Tyler Roscoe
the problem at its source would obviously be preferable for me. Thanks, tyler On Tue, Nov 30, 2010 at 12:14:56PM -0800, Tyler Roscoe wrote: > On Tue, Nov 30, 2010 at 01:29:37PM -0500, Zach Mullen wrote: > > Hm, yours was a use case we didn't really consider when we were making

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
tly build that fixes this bug/regression/misunderstanding. Thanks, tyler > On Tue, Nov 30, 2010 at 12:43 PM, Tyler Roscoe wrote: > > > On Fri, Nov 26, 2010 at 10:38:44AM -0500, Zach Mullen wrote: > > > I just realized why this isn't working -- it's actually not a reg

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-30 Thread Tyler Roscoe
On Thu, Nov 25, 2010 at 02:01:31PM +0100, Marcel Loose wrote: > >>> On 24-11-2010 at 17:45, in message > <20101124164507.gg23...@cryptio.net>, Tyler > Roscoe wrote: > > On Wed, Nov 24, 2010 at 12:11:56PM +0100, Micha Renner wrote: > >> > >> &g

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-30 Thread Tyler Roscoe
le ground about the future of the COST property. In its current state, it is of no use to me. Thanks, tyler > On Fri, Nov 26, 2010 at 10:20 AM, Zach Mullen wrote: > > On Tue, Nov 23, 2010 at 6:02 PM, David Cole wrote: > > > >> It might be due t

Re: [CMake] providing library information, what's the cmake way

2010-11-24 Thread Tyler Roscoe
information in the documentation would be good, I agree. > (Although quite time consuming and costly for somebody...) Perhaps a good compromise is simply to add version information to all new CMake commands/variables/properties that are added hence

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-24 Thread Tyler Roscoe
n. > > No, as I mentioned, there was an article of one the CMake-maintainers > who recommended this. Micha is correct. CMAKE_INSTALL_PREFIX is set before your CMakeLists.txt is processed, so the above will never do anything. tyler ___ Powered by w

[CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread Tyler Roscoe
t;TP_EXERCISER_FAIL") and the FAIL_REGULAR_EXPRESSION property seems to be working just fine. I've included a small repro case below. This looks like a regression. Should I open a bug? Thanks, tyler [tyle...@tpb006:~/cmake-test-properties-test]$ cat CMakeLists.txt cmake_minimum_required(VERSION 2.

Re: [CMake] Trouble with install()

2010-11-18 Thread Tyler Roscoe
gt; endforeach() Try install(FILES ...) instead. TARGETS is for installing CMake targets. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topi

Re: [CMake] BundleUtilities

2010-11-16 Thread Tyler Roscoe
On Tue, Nov 16, 2010 at 10:15:28PM -0500, David Doria wrote: > Is the goal simply to copy > ...VTK/bin/libvtkHybrid.a > into the package? > > I tried this: > INSTALL(CODE "\${VTK_DIR}/bin/libvtkHybrid.a") More like: INSTALL(FILES "${VTK

Re: [CMake] cmake for cygwin

2010-10-28 Thread Tyler Roscoe
r their packages to build correctly? tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.or

Re: [CMake] CTest: use 'make -k' instead of 'make -i'

2010-10-25 Thread Tyler Roscoe
n A? Besides, doesn't -k satisfy your use case while removing the confusing and erroneous report of success caused by using -i? Thanks, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensourc

Re: [CMake] Python test scripts

2010-10-23 Thread Tyler Roscoe
ks out of the box on many Linuxes/Unices. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake

Re: [CMake] How to tell if a target is already defined?

2010-10-19 Thread Tyler Roscoe
On Tue, Oct 19, 2010 at 12:05:21PM -0700, J Decker wrote: > WIthout adding a bunch of custom addtions, is there something I can > test to see if a target is already defined? Did you try 'if (TARGET ...)'? tyler ___ Powered by www.ki

Re: [CMake] altering RUN_TESTS post-build command (MSVC + CTest)

2010-09-30 Thread Tyler Roscoe
his without patching CMake. What we do instead is just create our own equivalent of the RUN_TESTS target: set (cmd ${CMAKE_CTEST_COMMAND} -VV) if (MSVC) set (cmd ${cmd} -C ${CMAKE_CFG_INTDIR}) else () set (cmd ${cmd} -C ${CMAKE_BUILD_TYPE}) end

Re: [CMake] add_test : expand environment variable at running time

2010-09-13 Thread Tyler Roscoe
make (empty because not defined in cmake - logical) > > - add_test( mpirun -machinefile $ENV{TMPDIR} myexec ) => expands at > configuration time with cmake but TMPDIR is not yet defined on the > master node (logical) How about add_test (... \$TMPDIR ... ) ? tyler _

Re: [CMake] How to invoke 64 bit cmd.exe from cmake script on Windows 7 (x64).

2010-08-22 Thread Tyler Roscoe
(since the cmake > itself runs in 32bit environment). > But I'm interested in 64bit cmd.exe. > Is there a way to invoke it from cmake? Where is ${SHELL} defined? What is its value? I suspect you could use find_program() with appropriate arguments to s

Re: [CMake] Build logging

2010-08-18 Thread Tyler Roscoe
-S script.cmake -VV > build.log 2>&1". tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://w

Re: [CMake] Weird ctest behaviour

2010-08-17 Thread Tyler Roscoe
NARY_DIRECTORY and CTEST_COMMAND are not ctest -S scripts are mostly intended (afaik) for running dashboard scripts where those variables are required. How about using cmake -P script.cmake instead? tyler ___ Powered by www.kitware.com Visit other K

Re: [CMake] ctest: Empty reply from server

2010-08-17 Thread Tyler Roscoe
t always produce the most helpful error messages (submit to a dashboard that's not there and nothing in the chain complains! your build just never arrives anywhere). However, there's not a lot of detail here. Does your Build.xml look correct? Are there any relevant messages

[CMake] CTest Coverage looking in the wrong spot for source files

2010-08-11 Thread Tyler Lacy
I am using Ctest to do testing and coverage for my code. The directory is set up like so: SourceDir/ subdir1/ foo.cpp foo.gcda foo.gcno foo.h subsub/ foo2.cpp foo2.gcda foo2.gcno subdir2/ bar

Re: [CMake] Build tree with common dependency - CMP-0002

2010-08-06 Thread Tyler Roscoe
;t built that library yet. Instead, you should check for the existence of the CMake target that will cause the library to be built at compile time. You can do this with if (TARGET ). tyler ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Tyler Roscoe
On Thu, Jul 22, 2010 at 04:57:50PM +0200, Olaf van der Spek wrote: > Why aren't empty dirs excluded by default? Because if they were excluded, we would have someone on the list next month asking why she can't create empty directories with install() com

Re: [CMake] different test cases

2010-07-15 Thread Tyler Roscoe
art of the "extensiveTest" set?), you could train your developers how to use CTest directly. You could also add a custom_target that runs something like "${CMAKE_CTEST_COMMAND} -R extensive", which gives you the build target you're looking for. tyler ___

Re: [CMake] Copy two files into one file

2010-07-09 Thread Tyler Roscoe
On Fri, Jul 09, 2010 at 06:39:57PM +0200, Bo Thorsen wrote: > Does this also work with binary files? From the documentation on FILE, > this isn't really clear to me. Why don't you try it and let us know? tyler ___ Powered by www.ki

Re: [CMake] Building a Version Header

2010-07-08 Thread Tyler Roscoe
y, we use a custom command to call a python script at build time. The script writes out the header with the up-to-date version info. tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/ope

Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
ducating it out of them, but if both win32 and win64 configurations could be made available through a robust configure-time process, that might be better. Thanks, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Different configurations with Visual Studio

2010-07-06 Thread Tyler Roscoe
If possible, I would be interested in seeing/using this script. Thanksm, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake

Re: [CMake] Generating a combined x86 and x64 Visual Studio project

2010-07-01 Thread Tyler Roscoe
n or must one > generate separate 32-bit and 64-bit solutions/projects in different > directories? This is not currently possible. Here's a thread where this was discussed previously: http://www.cmake.org/pipermail/cmake/2009-June/029897.html tyler ___

Re: [CMake] Howto unset cache variable without UNSET()

2010-07-01 Thread Tyler Roscoe
Marcel, Maybe I missed it earlier ITT, but I don't understand why you can't just use if(FOO) instead? tyler On Thu, Jul 01, 2010 at 11:53:33AM +0200, Marcel Loose wrote: > Hi Fraser, > > It doesn't. Well, partly it does, but unfortunately setting FOO to an > e

Re: [CMake] Ways of setting CTEST_BUILD_NAME

2010-06-24 Thread Tyler Roscoe
;s the easiest way I can set CTEST_BUILD_NAME? > Simply setting that variable in my CMakeLists.txt file doesn't *seem* > to be effective. Based on my build system, it looks like you can just set BUILDNAME before you do include(CTest). You may need an enable_testing() call as well. tyler

Re: [CMake] ADD_CUSTOM_COMMAND split on multiple lines

2010-06-23 Thread Tyler Roscoe
n't make sense because mymacro is available at configure time but your custom command will run at build time. One way to do what you want is to put the definition and call of mymacro() in a script, then run that script at build time with "COMMAND ${CMAKE_COMMAND} -P mymacro.cmake". t

Re: [CMake] Changing compiler flags generated by cmake

2010-06-22 Thread Tyler Roscoe
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote: > I know about the variable to add custom flags for g++, but how do I get rid > if > unwanted flags? I am writing a program for KDE on Linux and cmake insists on Something like: string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FL

Re: [CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Tyler Roscoe
On Fri, Jun 18, 2010 at 01:06:46PM -0400, David Cole wrote: > On Fri, Jun 18, 2010 at 1:01 PM, Tyler Roscoe wrote: > > On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote: > > > 2010/6/18 Tyler Roscoe : > > > > 1. I want to change where "mak

Re: [CMake] Shipping Config Files

2010-06-18 Thread Tyler Roscoe
oked at the install() command? tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMa

Re: [CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Tyler Roscoe
On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote: > 2010/6/18 Tyler Roscoe : > > 1. I want to change where "make package" deposits the packages it > > creates.  Is there a way to do this -- some cpack variable I haven't > > found? > > No

[CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Tyler Roscoe
do I calculate "some_extension"? Is there some mapping between package type (TGZ, ZIP, NSIS) and the extension it ends up with (.tar.gz, .zip, .exe)? Thanks, tyler ___ Powered by www.kitware.com Visit other Kitware open-source projects a

Re: [CMake] Variable Propagation

2010-06-14 Thread Tyler Roscoe
le. > > > > Also consider to use properties for such a purpose. > > Which property do you actually think about? You can set arbitrary properties (MY_MAGIC_PROPERTY) and query them later. I think this is what Michael meant. tyler ___ P

Re: [CMake] Nesting a cmake project

2010-06-07 Thread Tyler Roscoe
But you might ship Inner without Outer, right? Or use Inner in a third project, OffToTheSide? These relationships are easier to model and less messy if Inner doesn't live inside Outer. Anyway, just something to consider. tyler ___ Powered by www.k

  1   2   3   4   5   6   >