[CMake] FindICU.cmake setting ICU_FOUND to "FALSE" with quotes?

2020-02-10 Thread Kent Williams
I was trying to do this: find_package(ICU 59.1 QUIET COMPONENTS data i18n io tu uc ) if(ICU_FOUND)   include_directories(BEFORE ${ICU_INCLUDE_DIRS})   message("ICU_LIBRARIES=${ICU_LIBRARIES}") endif() And at configuration time, ICU_FOUND was turning up with double quotes around it, and as we

[CMake] configuring FCGI2 -- check typedefs in include files?

2019-10-25 Thread Kent Williams
There are some things I'm trying to do in setting up a config file for the FCGI2 library: https://github.com/FastCGI-Archives/fcgi2.git And in going from an autoconf configuration to a CMake configuration there are some stumpers: /* Define if the fpos_t typedef is in stdio.h */ /* #unde

Re: [CMake] Centos8 FindICU problems

2019-10-23 Thread Kent Williams
That works for me, but is this a documented thing anywhere? On 10/22/19 4:22 PM, Roger Leigh wrote: On 22/10/2019 21:51, Kent Williams wrote: find_package(ICU REQUIRED) It reports failure to find ICU, and I can't work out what I'm supposed to do:     CMake Error at /usr/s

[CMake] Centos8 FindICU problems

2019-10-22 Thread Kent Williams
This is a development system we're just standing up using Centos 8. Linux build8.leepfrog.com 4.18.0-80.7.1.el8_0.x86_64 #1 SMP Sat Aug 3 15:14:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux cmake version 3.11.4 gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC) Installed Packages harfbuzz-icu.x86

[CMake] Why can't I build CMake on Centos6 32-bit?

2017-02-07 Thread Kent Williams
This used to work. Linux build6.leepfrog.com 2.6.32-642.6.2.el6.i686 #1 SMP Wed Oct 26 06:14:53 UTC 2016 i686 i686 i386 GNU/Linux gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17) The first part of the bootstrap succeeds, and then running the second stage yields this: loading initial cache file /home/k

[CMake] ExternalProject git checkout --depth=1 ???

2015-01-08 Thread Kent Williams
I'm building the Mozilla Spidermonkey JS interpreter as an ExternalProject. So far so good, but I had a question/feature request: Wouldn't it be grand to be able to add --depth 1 to the git clone? This is perfect for grabbing giant repositories. Mozilla is more than 3 gigabytes with a full clon

[CMake] How about a CMake debugger?

2013-02-21 Thread Kent Williams
As I'm now deep in tracing through 80K lines of cmake --trace output, man I'd love some sort of CMake debugger! Actually if you use Emacs you can kinda sorta do tracing -- run CMake with the --trace parameter in the compile bufffer (i.e. alt-x compile command) and then the Emacs next-error steps a

[CMake] Why dont FindTIFF.cmake and FindJPEG.cmake consider _DIR variables?

2013-02-15 Thread Kent Williams
Are FindTIFF.cmake and FindJPEG.cmake really old and neglected? Neither seems to bother looking at TIFF_DIR or JPEG_DIR -- you have to set TIFF_LIBRARY and TIFF_INCLUDE_DIR (or JPEG_LIBRARY and JPEG_INCLUDE_DIR). find_package is a great facility but I find myself having to look at the actual Fin

Re: [CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Kent Williams
tall >> ITK and DCMTK just fine here? (I had to manipulate the linker-order of >> DCMTK a bit but that's almost to be expected, sadly). >> >> You're saying that when you find_package(DCMTK) it's libraries doesn't >> include some library it needs? >&

Re: [CMake] Wrapper for cmake (configure-script)

2013-02-14 Thread Kent Williams
This is a good start. There's only one problem: What happens if CMake isn't installed. Searching for a proper version of CMake should be dine in the script as well. It should also generate a config.status file. This need not be incredibly sophisticated, but since autoconf always generates one,

[CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Kent Williams
The specific problem I'm trying to solve: Build DCMTK library, along with libraries upon which it depends, for use by ITK as a 'system library' The problem: Setting up the External Projects is simple enough; the problem is that the revision/configuration of TIFF -- 3.9.4 -- by default requires ZL

Re: [CMake] Building CMake 2.8.10.2 -- package created named cmake-2.8.10.2-Darwin-i386.dmg?

2013-02-05 Thread Kent Williams
://cmake.org/gitweb?p=cmake.git;a=blob;f=Utilities/Release/dashmacmini5_release.cmake;h=36b095287e80d26ed1b684b6c1a69d9bda1963ba;hb=HEAD#l19 > > Hth > Jc > > > On Tue, Feb 5, 2013 at 9:47 AM, Kent Williams > wrote: > >> Building on OS X 10.7.5 with XCode 4.5.2 >> Compiling with default

[CMake] Building CMake 2.8.10.2 -- package created named cmake-2.8.10.2-Darwin-i386.dmg?

2013-02-05 Thread Kent Williams
Building on OS X 10.7.5 with XCode 4.5.2 Compiling with default compiler Apple clang version 4.1 (tags/Apple/clang-421.11.66) The packages available for download on cmake.org are named http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Darwin64-universal.dmg My question is this: how is the architectu

[CMake] CMAKE_OSX_ variables lacking documentation

2013-02-05 Thread Kent Williams
I was looking for documentation in the CMake manual for CMAKE_OSX_ARCHITECTURES. This is a list of architectures, the possible choices are: i386;x86_64;ppc;ppc64 But this is not mentioned in the CMake documentation. Shouldn't it be? -- Powered by www.kitware.com Visit other Kitware open-sourc

Re: [CMake] When should I use add_subdirectory and when ExternalProject?

2013-02-04 Thread Kent Williams
The real world example is Slicer -- http://www.slicer.org/pages/DeveloperOrientation This is rather a large and complex project and the way they do somethings is hard to decode. Make sure you read through and understand this: http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8

Re: [CMake] When should I use add_subdirectory and when ExternalProject?

2013-02-04 Thread Kent Williams
They are two different things entirely. add_subdirectory is used when you have a project structured hierarchically in directories and subdirectories, but you want the entire project configured at one time. ExternalProject is used to download, configure and build a project that is a prerequisite t

Re: [CMake] Any portable way in CMake build tree to find Source tree path?

2013-01-28 Thread Kent Williams
Thanks for all your help. It does seem like you can spend a long time working with CMake (nearly 10 years for me) and still learn new things! On Sat, Jan 26, 2013 at 8:48 AM, Cory Quammen wrote: > Oops, I didn't know about that command. I tried it out, and it works > like a charm. > > Thanks fo

[CMake] Any portable way in CMake build tree to find Source tree path?

2013-01-25 Thread Kent Williams
I'm trying to write a Find.cmake file for a library that doesn't generate a proper Config.cmake file. The problem I'm trying to solve is how to build against a build tree instead of an install tree. On OS X and Windows (well, probably any Makefile generator) CMake helpfully adds CMakeDirectoryInf

[CMake] Backslashes in path names on Windows?

2013-01-25 Thread Kent Williams
I am testing a ITK patch I'm working on in Windows. That involves entering a path in cmake-gui or ccmake. The first time I tried it, I entered the path 'windows-wise' with backslashes as path separators. That caused a syntax error at the point where that variable is used. When I re-entered the

[CMake] CMake 2.8.9 CMake-GUI locks up during initial configuration?

2012-11-01 Thread Kent Williams
OS: Windows 7 (64-bit) CMake 2.8.9 generator: NMake Makefiles Trying to configure ITK (with my patches) Problem: CMake-GUI seems to lock up -- the progress bar moves about 10% to the right and stops, and the process output from the command line CMake stops. If I run the configure from the command

[CMake] how to find current Windows build configuration?

2012-10-24 Thread Kent Williams
On platforms other than Windows, the build type is a single value stored in CMAKE_BUILD_TYPE, and can be accessed if you want your build to different things in Debug, Release, etc modes. On Windows with Visual Studio, there's a variable CMAKE_CONFIGURATION_TYPE that is a list of the builds that wi

[CMake] FindDCMTK.cmake bug, asking for a bump.

2012-08-14 Thread Kent Williams
I logged this bug earlier this year: http://www.cmake.org/Bug/view.php?id=12916 The problem is that the FindDCMTK.cmake file leaves out a required library from DCMTK_LIBRARIES. I included a one line patch to fix the problem. According to the comment in the bug from David Cole, this is where I co

[CMake] All right all you CMake test writers....

2012-07-11 Thread Kent Williams
Here's something I find really annoying: Someone who names tests such that the name of one is a prefix of the name of another! So if you do this: ctest -V -R You get every test whose name begins with . Just had to vent. -- Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] Can imported libraries depend on ExternalProject targets?

2012-06-26 Thread Kent Williams
Alexander Neundorf wrote: > On Tuesday 26 June 2012, Kent Williams wrote: > >> I meant to say 'the approach you use doesn't work, because imported > >> libraries are targets to are targets to which you CANNOT add > >> dependencies." > > This should

Re: [CMake] Can imported libraries depend on ExternalProject targets?

2012-06-26 Thread Kent Williams
I meant to say 'the approach you use doesn't work, because imported libraries are targets to are targets to which you CANNOT add dependencies." On Tue, Jun 26, 2012 at 9:33 AM, Kent Williams wrote: > That seems like it should work, but it actually does not. > > There'

Re: [CMake] Can imported libraries depend on ExternalProject targets?

2012-06-26 Thread Kent Williams
That seems like it should work, but it actually does not. There's two types of precedence in CMake. 1. Textual -- as CMake munches through a project and its subdirectory, it generates a build system where the build order is the same as the textual order. In a single process build, for example:

Re: [CMake] Return code from CMake script

2012-06-22 Thread Kent Williams
If CMake is running a script via -P, doesn't it return a non-zero status if there's any error? I'd think it would be sufficient to run to the end of the script if everything works fine, but have something like if(something_went_wrong) message(FATAL_ERROR "¡OH NO! ¡SUCEDIO ALGO TERRIBLE!!!") end

Re: [CMake] Can imported libraries depend on ExternalProject targets?

2012-06-22 Thread Kent Williams
, Jun 22, 2012 at 12:29 PM, David Cole wrote: > On Fri, Jun 22, 2012 at 11:33 AM, Kent Williams > wrote: >> >> Say I have an ExternalProject that generates several libraries >> >> ExternalProject_Add(foo >>  # the usual mumbo jumbo >> ) >> >> set(

[CMake] Can imported libraries depend on ExternalProject targets?

2012-06-22 Thread Kent Williams
Say I have an ExternalProject that generates several libraries ExternalProject_Add(foo # the usual mumbo jumbo ) set(foo_LIBRARIES) # foo makes 3 libraries foreach(lib a b c) # import the libraries add_library(${lib} STATIC IMPORTED) # tell CMake where the library file is set_property(

Re: [CMake] How to add dependency on parent directories?

2012-06-22 Thread Kent Williams
Dependencies are between targets, not projects or CMakeLists.txt. You would need to have a target in one project depend on a target defined in another. Some of these dependencies are managed automatically, as when you build one or more libraries, and then reference them when you build a program.

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-26 Thread Kent Williams
not reporting correctly > right now for gcc 4.7, but this is the first problem I've heard of with an > earlier gcc... > >   http://public.kitware.com/Bug/view.php?id=13121 > > > > On Mon, Apr 23, 2012 at 5:18 PM, Kent Williams > wrote: >> >> cmake: 2.8

[CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-23 Thread Kent Williams
cmake: 2.8.6 gcc/g++: 4.4.6-3 Red Hate Enterprise Linux 6.2 I follow the instructions here: http://www.cmake.org/Wiki/CTest/Coverage And I have 2 different dashboards that report zero coverage: http://testing.psychiatry.uiowa.edu/CDash/index.php?project=BRAINSStandalone http://testing.psychiatry

[CMake] Can string(REGEX REPLACE match multiple lines?

2012-04-20 Thread Kent Williams
I'm trying to write a CMake patch script for a package that needs a TARGET_LINK_LIBRARIES command replaced. In the original it covers multiple lines, e.g. TARGET_LINK_LIBRARIES(targetname1 boguslib1 boguslib2 boguslib3 ) I tried this to replace it: string(REGEX REPLACE "TARGET_LINK_LIBRARIES(ta

Re: [CMake] add_subdirectory inheritance

2012-04-18 Thread Kent Williams
> really > dont want. It will also inherit -DUSING_GFX even if it has nothing to do > with it. > > Regards, > irukandji > > > > On 2012-04-17 22:56, irukandji wrote: >>> >>> I don't know how you'd ever maintain a sane overall project if it

Re: [CMake] add_subdirectory inheritance

2012-04-17 Thread Kent Williams
ant libraries and messes the build. > > The question actually is: can i workaround this behaviour and if not, can > you please > include the parameter to add_subdirectory function to NOT propagate the > settings. > > Regards, > Irukandji > > > On 2012-04-17 17:58, Ken

Re: [CMake] add_subdirectory inheritance

2012-04-17 Thread Kent Williams
Frankly, I don't entirely understand what the problem is, or what your proposed solution is. What is it that you don't want the subdirectory context to inherit? On Tue, Apr 17, 2012 at 10:30 AM, irukandji wrote: > Hi, > > (as no one answered to my previous email, let me add this: multiplatform >

[CMake] FindDCMTK.cmake missing a library when it constructs DCMTK_LIBRARIES

2012-01-27 Thread Kent Williams
Logged it as a bug. I'm not sure why FindDCMTK.cmake is so sad. Basically it leaves out a library from ${DCMTK_LIBRARIES} namely oflog. http://www.cmake.org/Bug/view.php?id=12916 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/openso

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread kent williams
doing, and if you don't have this problem I'm interested in how you got it to work. While I'm whining -- FindDCMTK.cmake doesn't include liboflog.a in DCMTK_LIBRARIES either. On Tue, Nov 29, 2011 at 10:47 AM, Thomas Sondergaard wrote: > On 2011-11-29 17:28, kent willi

[CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread kent williams
I'm running into problems using the DCMTK library. I've set up an ExternalProject to build and install it, and the CMake 2.8.5 FindDCMTK.cmake finds the library if I set DCMTK_DIR. But the DCMTK_INCLUDE_DIRS variable created by FindDCMTK.cmake isn't 100% correct. It does a good job of enumeratin

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread kent williams
In general it's better to make your project into an ExternalProject itself, and have it depend on all other ExternalProject upon which it depends. That way all prerequisites get built, and then your package get built. It ensures that all prerequisites are fully built and installed before your pro

[CMake] MakeCommand unset in CTestConfiguration.ini

2011-09-26 Thread kent williams
OS X CMake 2.8.5 I was trying to get our nightly build script correct, and ran into this: MakeCommand: Cannot find MakeCommand key in the DartConfiguration.tcl First of all we don't use Dart, there is no DartConfiguration.tcl in the build directory. There is a CTestConfiguration.ini, which does

Re: [CMake] Setting CMAKE_C_COMPILER CMAKE_CXX_COMPILER Deletes Cache?

2011-05-24 Thread kent williams
I guess that's fair; but what appears to be happening is that it's deleting the cache even if the -D compiler string is the same as what's already in Cache. On Mon, May 23, 2011 at 4:45 PM, David Cole wrote: > On Mon, May 23, 2011 at 5:37 PM, kent williams > wrote: >

[CMake] Setting CMAKE_C_COMPILER CMAKE_CXX_COMPILER Deletes Cache?

2011-05-23 Thread kent williams
Ran into this with CMake 2.8.4 on Linux -- though apparently not on my OS X machine, go figure. I had a nightly build shell script that as a matter of course set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER on the command line. I was getting mysteriously unnamed builds in our Dashboard. What I traced

Re: [CMake] Confusing problem with building VTK via external project

2011-04-13 Thread kent williams
AM, kent williams > wrote: >> >> I've all of a sudden started having trouble building VTK via an >> ExternalProject.  OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock >> VTK 5.6.1. >> >> output of make VERBOSE=1 of the top-level project, you can see tha

[CMake] Confusing problem with building VTK via external project

2011-04-13 Thread kent williams
I've all of a sudden started having trouble building VTK via an ExternalProject. OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock VTK 5.6.1. output of make VERBOSE=1 of the top-level project, you can see that QT_QMAKE_EXECUTABLE is set, but when CMake runs, it somehow ignores the variables se

[CMake] Status of FindHDF5.cmake in CMake?

2011-04-07 Thread kent williams
Hi! I'm working on some classes for ITK4 that use the HDF library, and I've run into a quandary. If you build & install HDF5 with CMake, you MUST use find_package(HDF5 [REQUIRED] NO_MODULE) in order to use HDF5. If you use the more natural command find_package(HDF5 [REQUIRED]) then the cm

[CMake] Why is ExternalProject trigger-happy about re-downloading source?

2011-03-09 Thread kent williams
I've been running into this every since we updated to CMake 2.8.4, but I don't know if it's revision specific. Sometimes if I change CMakeLists.txt in various directories so that make will re-run cmake to pickup CMakeLists.txt changes, it triggers re-downloading VTK & ITK from scratch. Is using G

Re: [CMake] CMake 2.8.4 -- FindITK.cmake fails to find ITK even when ITK_DIR is properly set.

2011-03-08 Thread kent williams
ile that builds ITK. Then, it builds several projects as ExternalProjects, passing in ITK_DIR in CMAKE_ARGS. It's in that secondary configure -- the one that make does as part of the build -- where I get a failure. On Tue, Mar 8, 2011 at 7:17 AM, Brad King wrote: > On 03/07/2011 03:59

[CMake] CMake 2.8.4 -- FindITK.cmake fails to find ITK even when ITK_DIR is properly set.

2011-03-07 Thread kent williams
My first subject line was "Who decided to break FindITK.cmake in 2.8.4?" but that isn't probably very tactful. We have a whole bunch of projects that used to configure and build just fine with CMake 2.8.3. With 2.8.4 they fail. The error message we get is: CMake Error at /opt/cmake-2.8.4-Darwin-

[CMake] find_package(Qt4 REQUIRED) doesn't include QtNetwork?

2011-03-04 Thread kent williams
To use Qt in my projects with CMake, up until now all it seemed to require was this: find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) But then I tried to use QTcpServer and QTcpSocket, and the compiles failed because it couldn't find the include files. Then I read through the FindQt4.cmake fil

Re: [CMake] FindTCL.cmake has a problem?

2011-02-03 Thread kent williams
possible, although I'm not > sure how well it will do in all situations yet. > > Cheers, > CY > > > On Mon, Jan 31, 2011 at 11:26 AM, kent williams > wrote: >> I found this out on a RHEL6 machine, which comes stock with tclsh and >> wish b

Re: [CMake] FindTCL.cmake has a problem?

2011-02-03 Thread kent williams
Unfortunately, I can't provide this because we had to get the builds running, and installed the proper packages. But I don't think I was imagining things. On Wed, Feb 2, 2011 at 6:57 AM, Michael Hertling wrote: > On 01/31/2011 05:26 PM, kent williams wrote: >> I found

[CMake] FindTCL.cmake has a problem?

2011-01-31 Thread kent williams
I found this out on a RHEL6 machine, which comes stock with tclsh and wish but without the C header files for development. FindTCL.cmake sets TCL_FOUND, even though TCL_INCLUDE_PATH:PATH=TCL_INCLUDE_PATH-NOTFOUND Imagine the hilarity that ensues! ___ P

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

2011-01-26 Thread kent williams
The CMakeLists.txt below illustrates the problem: - cmake_minimum_required(VERSION 2.8) project(testo) function(set_a_var var value) set(${var} ${value}) message("${var} = ${${var}}") endfunction() set_a_var(testo "HELLO!") message(

[CMake] Any way to make/fake subdirectories depending on ExternalProject?

2011-01-20 Thread kent williams
I kinda know the simple answer is 'no.' I hope there's a creative *couch*sneaky*cough* way to do this. I'm trying to build CableSwig as a external project as part of ITK. I have this working for a single-process build. It works in that case because the ExternalProject_add happens textually befo

Re: [CMake] List operations

2011-01-13 Thread kent williams
gt; And, just as a caution: Don't use file(GLOB to create a list of source files > to compile.  Search the wiki or the archives for info. > Ryan > > On Wed, Jan 12, 2011 at 12:05 PM, Andreas Pakulat wrote: >> >> On 12.01.11 11:56:53, kent williams wrote: >> > I&

Re: [CMake] How to have a target depend on an External Project

2011-01-12 Thread kent williams
o >> always work? >> >> Allen >> >> > Date: Wed, 12 Jan 2011 13:23:52 -0500 >> >> > From: "Marcus D. Hanwell" >> >> > Subject: Re: [CMake] How to have a target depend on an External >> >> > Project >>

[CMake] List operations

2011-01-12 Thread kent williams
I'm generating a list of files with file(GLOB), but then I want to remove some filenames from the resulting list. So essentially I'd like a CMake function like this function(RemoveItemsFromList ListA ListToRemove) endfunction(RemoveItemsFromList) and I don't know what to put in the middle ;-) __

[CMake] How to have a target depend on an External Project

2011-01-12 Thread kent williams
For better or worse (mostly better) we are now heavy users of ExternalProject. That module works really well to pull in external dependencies and get them built. ExternalProject_add has a DEPENDS keyword that lets you specify dependencies on other External Projects. But an ExternalProject isn't

Re: [CMake] Anyone gotten OpenSSL to build as an external project?

2011-01-07 Thread kent williams
That's kind of a solution, but as near as I can figure CMAKE_SIZEOF_VOID_P doesn't change if I set CMAKE_OSX_ARCHITECTURE to i386. The following seems to work, but I explicitly test CMAKE_OSX_ARCHITECTURE so that if I'm building i386 on a system with x86_64 as the default, it correctly configures

[CMake] Anyone gotten OpenSSL to build as an external project?

2011-01-07 Thread kent williams
This shouldn't be a big deal -- something like this should work: ExternalProject_add(OpenSSL    URL "http://www.openssl.org/source/openssl-1.0.0c.tar.gz";    URL_MD5 ff8fb85610aef328315a9decbb2712e4    CONFIGURE_COMMAND ./config --prefix="${CMAKE_CURRENT_BINARY_DIR}/OpenSSL" BUILD_IN_SOURCE 1  

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

2010-12-17 Thread kent williams
I've got a 'Work In Progress' patch for the ITK CMake build system that builds FFTW as an external project. I've got a few CMake questions about how to go about finishing it. 1. When I build FFTW using ExternalProject_add, it does a local install -- The prefix directory is ${CMAKE_BINARY_DIR}/FFT

[CMake] ExternalProject module in 2.8.2 completely broken with respect to GIT?

2010-10-28 Thread kent williams
Please tell me someone else encountered this and it's fixed. I'm going to have to make a patched version of ExternalProject.cmake a part of my project until it is. In CMake 2.8.2 ExternalProject.cmake, there is no consistency on the capitalization of the Git_EXECUTABLE variable -- which is what ge

[CMake] MacOSX, Qt plugins and BundleUtilities -- not building proper bundle?

2010-10-25 Thread kent williams
Like everyone else I started here to build my Qt app with CMake: http://www.cmake.org/Wiki/BundleUtilitiesExample Like a lot of things in CMake this involves copying a bunch of brittle CMake code into your CMakeLists.txt, and seems like it has too many moving parts and failure points, but hey, we

Re: [CMake] linking main Fortran and C++

2010-10-20 Thread kent williams
I know you're simplifying to provide an example, but I hope you don't normally set CMAKE_CC_COMPILER, CMAKE_Fortran_COMPILER and CMAKE_CXX_COMPILER in your CMakeLists.txt. That's precisely the sort of thing that CMake is meant to find for you. It will find the compilers needed to compile your sou

[CMake] CMake can't handle Unicode files with BOM

2010-10-19 Thread kent williams
OK if anyone is tallying how many hours have been wasted on Unicode files with BOM, add at least one for me. This is a logged bug for CMake: http://public.kitware.com/Bug/view.php?id=11137 I assume that 2.8.4 or whatever will find a way to deal with this. But my quick summary is this: A Unicode f

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-08 Thread kent williams
I think what I'm doing isn't clear to you. I have a CMakeLists.txt that is essentially 'sourceless' -- it defines a bunch of CMake variables, and then builds a bunch of prerequisites and applications added with ExternalProject_add. It doesn't have any add_subdirectory,add_executable, add_library e

Re: [CMake] Disallowing in-source builds

2010-10-07 Thread kent williams
You could try, though it makes my brain hurt to think about it. Why go to such lengths to protect users from themselves? On Thu, Oct 7, 2010 at 11:57 AM, wrote: > Yeah, I think I'll go with something like what you are saying.  I wonder > if I can remove the CMakeFiles directory and the CMakeCac

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-07 Thread kent williams
On Thu, Oct 7, 2010 at 11:05 AM, Bill Hoffman wrote: > > What you want is for make to treat the external projects just like any other > library or executable in a build. > > so, if you run this at the top of the build: > > make -j4 > > It should run at most 4 concurrent things at once for the whol

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-07 Thread kent williams
: > On 10/7/2010 11:25 AM, kent williams wrote: >> >> On Wed, Oct 6, 2010 at 5:01 PM, Clifford Yapp  wrote: >>> >>> I use $(MAKE) in my BUILD_COMMAND and that seems to do OK, although I >>> don't know if it works universally. >>> >> >>

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-07 Thread kent williams
On Wed, Oct 6, 2010 at 5:01 PM, Clifford Yapp wrote: > I use $(MAKE) in my BUILD_COMMAND and that seems to do OK, although I > don't know if it works universally. > That's an environment variable, as near as I can tell and isn't mentioned in the current CMake documentation. So it's probably not t

Re: [CMake] Disallowing in-source builds

2010-10-07 Thread kent williams
Two things: You should have your source code under version control, for many reasons, but in this context: 1. The VC system can tell you which files are unknown to it, i.e. those CMake pooped all over your source tree. 2. You can make sure your work is checked in, then delete the source directory

[CMake] How would I use parallel make on ExternalProjects?

2010-10-06 Thread kent williams
I'd like to use parallel make to build libraries like ITK and VTK which are rather time-consuming. This simple-minded (and non portable) method works: In the ExternalProject_Add macro, add BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} -j4 But that only works if CMAKE_MAKE_PROGRAM understands the '-j4' fla

Re: [CMake] HOWTO: Generate Use*.cmake files for installation

2010-10-01 Thread kent williams
No, I didn't get any clues as to how this is handled. In ITK it is handled subtly, which is to say I couldn't figure out how it worked from reading the CMakeLists.txt. What I ended up doing is to create the Config file twice -- once for the eventual installation, and once for the in-place usage.

[CMake] HOWTO: Generate Use*.cmake files for installation

2010-09-21 Thread kent williams
I need to do what ITK does -- generate one set of *Config.cmake and Use*.cmake files for the build tree, so it can be used in place, and a second set to be installed when 'make install' is run. Looking through the Insight CMakeLists.txt files I'm not seeing how or where the files intended for the

Re: [CMake] CDash dashboard fail: Errors/Warning/Tests counts all zero?

2010-09-16 Thread kent williams
I'm using what is a pretty naive script that does the actual submission with 'make Nightly' I'll include it at the end of the post. Using 'ctest -D Nightly' has the same result. The quotes on the site and build names are in the CTestConfiguration.ini They are not quoted in CMakeCache.txt The bi

[CMake] CDash dashboard fail: Errors/Warning/Tests counts all zero?

2010-09-16 Thread kent williams
Consider if you will this dashboard page: http://testing.psychiatry.uiowa.edu/CDash/index.php?project=BRAINS3&date=2010-09-13 I have several machines submitting Nightly builds to this dashboard and they all appear to be generating non-empty XML files to upload, and yet I'm getting blanks where I

Re: [CMake] CMake 2.8.2 going crazy on my 'Superbuild Project'

2010-08-24 Thread kent williams
Problem solved -- in what may have been an Emacs mishap, the entire CMakeLists.txt got included twice. The post-2.4 CMake pickiness caught the problem, but not knowing that I'd somehow duplicated the entire contents of the file, I was faced with utterly baffling error messages. I even thought when

[CMake] CMake 2.8.2 going crazy on my 'Superbuild Project'

2010-08-24 Thread kent williams
I have a CMakeLists.txt file that builds a bunch of prerequisite library, and then my application I'm working on. This is done all with External_Project macros. Once everything I need is built, I build my code as an external project: set(proj BRAINSTracerQT) ExternalProject_Add(${proj} URL fil

Re: [CMake] HowTo specify Site/Buildname for Ctest->CDash submissions

2010-08-10 Thread kent williams
Thanks for the prompt reply. It's 'SITE' and 'BUILDNAME' On Tue, Aug 10, 2010 at 2:44 PM, Rolf Eike Beer wrote: > Am Tuesday 10 August 2010 schrieb kent williams: >> I think this used to go > into DartConfiguration.tcl but we don't use >> D

[CMake] HowTo specify Site/Buildname for Ctest->CDash submissions

2010-08-10 Thread kent williams
I think this used to go into DartConfiguration.tcl but we don't use Dart any more for dashboards. I have read through the instructions http://www.vtk.org/Wiki/CDash:Build_Management#Client_Configuration and it describes how to configure things if you're going to run ctest directly. What it does

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-22 Thread kent williams
in quotes, how to deal with spaces inside tokens, etc. On Tue, Jul 20, 2010 at 4:30 PM, Andreas Pakulat wrote: > On 20.07.10 16:18:26, kent williams wrote: >> OK, so set_source_file_properties needs a property value that's a >> single string.  This wasn't clear from the d

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
OK, so set_source_file_properties needs a property value that's a single string. This wasn't clear from the documentation at all or not clear to me at least. Thanks for your help! On Tue, Jul 20, 2010 at 4:07 PM, Andreas Pakulat wrote: > On 20.07.10 15:43:16, kent williams wrote:

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
itely does not. 2. I don't get adding '*.h' files to the source list in add_executable does anything. It doesn't apparently generate a recipe to make an object file from a header. On Tue, Jul 20, 2010 at 3:26 PM, John Drescher wrote: > On Tue, Jul 20, 2010 at 4:09 PM, kent

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
I hope the inline comments below solve your problems. And please, don't > cross-post... > > On 20. Jul, 2010, at 19:06 , kent williams wrote: > >> This is with cmake version 2.8.1 on OS X 10.6. >> >> I had a project using CMake and Qt.  As long as I only used one

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
does it in more subtle devious ways. On Tue, Jul 20, 2010 at 1:53 PM, John Drescher wrote: > On Tue, Jul 20, 2010 at 2:48 PM, Andreas Pakulat wrote: >> On 20.07.10 13:30:51, kent williams wrote: >>> Let's try that again http://www.cornwarning.com/xfer/QTCmakeTest.tar.

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
Let's try that again http://www.cornwarning.com/xfer/QTCmakeTest.tar.gz On Tue, Jul 20, 2010 at 1:20 PM, kent williams wrote: > Sorry -- thanks for trying though. > > http://www.cornwarning.com/xfer/QTCmakeTest.tar.gz > > On Tue, Jul 20, 2010 at 1:00 PM, Andreas Pakulat w

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
Sorry -- thanks for trying though. http://www.cornwarning.com/xfer/QTCmakeTest.tar.gz On Tue, Jul 20, 2010 at 1:00 PM, Andreas Pakulat wrote: > On 20.07.10 12:06:11, kent williams wrote: >> This is with cmake version 2.8.1 on OS X 10.6. >> >> I had a project using CMake

[CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread kent williams
This is with cmake version 2.8.1 on OS X 10.6. I had a project using CMake and Qt. As long as I only used one QT Designer-generated .ui file, everything worked perfectly. When I added as second UI file, things no longer worked. I was working from the CMake + Qt4 examples on the web. There are tw

[CMake] When does fixup_bundle copy or not copy a library

2010-06-10 Thread kent williams
I had an issue with fixup_bundle skipping copying and fixing up a library upon which my application depended. This library's source was in a subdirectory of the application's build directory, and named in an add_subdirectory clause. My fixup_bundle recipe worked fine except for this one library.

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
I have discovered the problem, and it has nothing to do with CTest or CMake. It had everything to do with our overly-complex build system... but I now understand more about CTest/Dart etc than I did, so thanks for your time! ___ Powered by www.kitware.c

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
n the script. But to run a dashboard with ctest -D args, you have to cache > any necessary information that would otherwise be set in the driving script. > > Hope this helps, > David > > On Fri, Jun 4, 2010 at 11:25 AM, kent williams > wrote: >> >> I'm

Re: [CMake] Using CTest without DART??

2010-06-04 Thread kent williams
u doing: > include(CTest) > in your CMakeLists.txt file? > > On Fri, Jun 4, 2010 at 10:51 AM, kent williams > wrote: >> >> We don't have Dart installed on some machines we want to do testing >> on. Consequently including Dart.cmake does nothing to generate >>

[CMake] Using CTest without DART??

2010-06-04 Thread kent williams
We don't have Dart installed on some machines we want to do testing on. Consequently including Dart.cmake does nothing to generate DartConfiguration.tcl. If you're not using Dart, how do you set things up such that you avoid this error? running: ctest -V -D NightlyStart -D NightlyConfigure -D Nig

[CMake] SQL errors on CDash nightly submissions?

2010-06-02 Thread kent williams
We have a stock CDash installation on our testing web server (http://testing.psychiatry.uiowa.edu). I get SQL errors when a lot of machines submit nightly and experimental builds -- does this mean the CDash database is corrupt, or is this a known CTest problem with a known solution? Using HTT

Re: [CMake] chicken and egg q: Can CMakeLists.txt generate CTestConfig.cmake during configuration?

2010-06-01 Thread kent williams
t CDash server, you can do that > explicitly from a script without modifying CTestConfig.cmake. (Just set the > variables in your ctest -S script just prior to a ctest_submit call...) > If it's something else, let's talk about it. > :-) > HTH, > David > > >

[CMake] chicken and egg q: Can CMakeLists.txt generate CTestConfig.cmake during configuration?

2010-05-28 Thread kent williams
Subject line says it all. Does CTestConfig.cmake need to exist at configuration time, or just at Ctest/make test time? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-18 Thread kent williams
2010 at 1:29 AM, Eric Noulard wrote: > 2010/5/17 Tyler Roscoe : >> On Mon, May 17, 2010 at 12:53:34PM -0500, kent williams wrote: >>> "Internally, CPack will use CMake's install mechanism to automatically >>> populate the package." >> >> Right.

[CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread kent williams
It's mentioned in passing on the CMake Wiki, which is all the documentation I've found for CPack. Namely "Internally, CPack will use CMake's install mechanism to automatically populate the package." but when I add include(CPack) and then run make package It generates empty install packages.

Re: [CMake] Current CVS CMake can't build Qt/Cocoa OS X bundle that doesn't crash

2010-05-11 Thread kent williams
n Tue, May 11, 2010 at 4:03 PM, Bill Hoffman wrote: > On 5/11/2010 4:47 PM, kent williams wrote: >> >> I tried copying it to the suggested place, but it still didn't work. >> My solution, since I'm not a CMake developer, was to go back to using >> xterm -e ccmake i

  1   2   >