Re: [CMake] Happy Birthday CMake!

2018-09-10 Thread Bill Lorensen
Pcmaker, Ken Martin wrote it. On Mon, Sep 10, 2018, 3:26 PM Andrew Maclean wrote: > Hi Bill, >In the pre-Cmake days I remember building VTK on Windows with a program > that configured VTK for the build. Do you remember what it was called? This > was back around 2000! > > Regards >Andrew

Re: [CMake] announce: free VTK, ParaView and CMake training at Kitware New York next month

2018-02-05 Thread Bill Lorensen
Maybe add a short intro to the new VTKExamples? On Feb 5, 2018 11:41 AM, "David E DeMarle" wrote: > Hi Alan, > > Unfortunately no, not for this run through. For this first run through of > the new material we want it to be local only. This way we can keep it > highly

Re: [CMake] [ITK-dev] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Bill Lorensen
Here is what I do for the WikiExamples remote module: find_package(VTK REQUIRED) include(${VTK_USE_FILE}) set(VTK_COMPONENTS ${VTK_LIBRARIES}) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) set(ITK_LIBRARIES ${ITK_LIBRARIES} ${VTK_COMPONENTS}) On Tue, Sep 30, 2014 at 10:14 AM,

[CMake] CDash regression

2013-12-03 Thread Bill Lorensen
Folks, Recently, CDash stopped reporting files changes at the top of the dashboard. This is happening for ITK, VTK and CDash. I suspect this is a cdash issue? Bill -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] Multiple versions of ITK in one build?

2013-05-28 Thread Bill Lorensen
You could use cmake's superbuild facility to build both itk3 and itk4 in a superbuild tree. On Tue, May 28, 2013 at 11:02 AM, John Drescher dresche...@gmail.comwrote: On Tue, May 28, 2013 at 10:16 AM, Zamir Khan zamir.k...@gmail.com wrote: We have a project where multiple modules rely on

Re: [CMake] add additional lib

2012-07-12 Thread Bill Lorensen
Which lib is missing. There should be no VTK-related libs missing. What version of VTK are you using? On Thu, Jul 12, 2012 at 12:30 PM, Yixun Liu yxli...@gmail.com wrote: Hi, I am using # Find VTK FIND_PACKAGE(VTK REQUIRED) IF(VTK_FOUND) INCLUDE(${VTK_USE_FILE}) ENDIF(VTK_FOUND)

Re: [CMake] Install COMPONENT bug?

2012-06-21 Thread Bill Lorensen
Eric, My bad. I see all three components if the target includesan executable, static lib and shared lib. Thanks, Bill On Thu, Jun 21, 2012 at 2:38 AM, Eric Noulard eric.noul...@gmail.com wrote: 2012/6/21 Bill Lorensen bill.loren...@gmail.com: According to the documentation, an install

Re: [CMake] INSTALL documentation does not mention default component Unspecified

2012-06-21 Thread Bill Lorensen
will be executed. During a full installation all components are installed. If COMPONENT is not provided a default component Unspecified is created. On Thu, Jun 21, 2012 at 2:59 AM, Eric Noulard eric.noul...@gmail.com wrote: 2012/6/21 Bill Lorensen bill.loren...@gmail.com: If an INSTALL command does

Re: [CMake] ExternalProject_Add and Boost

2012-06-21 Thread Bill Lorensen
Take a look here: https://gitorious.org/pclsuperbuild/pclsuperbuild I recently created this superbuild for the Point Cloud Library. You'll see that it configures and builds Boost with be. Also it downloads PCL, configures and builds it and other dependencies. It is new,, so there may be some

[CMake] Install COMPONENT bug?

2012-06-20 Thread Bill Lorensen
According to the documentation, an install command like this: INSTALL ( TARGETS myTarget EXPORT myExportedTargets RUNTIME DESTINATION bin COMPONENT component1 LIBRARY DESTINATION lib COMPONENT component2 ARCHIVE DESTINATION bin COMPONENT component3 ) should produce 3

[CMake] INSTALL documentation does not mention default component Unspecified

2012-06-20 Thread Bill Lorensen
If an INSTALL command does not provide a COMPONENT, it seems that a component named Unspecified is created. This is not mentioned anywhere in the cmake documentation as far as I can tell. This cmake file illustrates the problem: cmake_minimum_required(VERSION 2.8) project(bug)

Re: [CMake] CMake Variable Values (new Kitware blog post)

2012-06-10 Thread Bill Lorensen
It would be nice to see a macros that show what variables are changed/added between two cmake statements. Something like: mark_variables(before_find) find_package(vtk) mark_variables(after_find) diff_variables(before_find,after_find) On Sun, Jun 10, 2012 at 12:30 PM, David Cole

Re: [CMake] open.cdash.org/ down?

2012-06-08 Thread Bill Lorensen
, 2012 at 4:12 PM, Bill Lorensen bill.loren...@gmail.com wrote: The dashboard host http://open.cdash.org/ seems to be down. Bill -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] What CMake release introduced VERSION_LESS/EQUAL/GREATER

2012-04-26 Thread Bill Lorensen
The subject says it all. -- 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_FAQ Follow this link to subscribe/unsubscribe:

[CMake] ExternalProject_Add examples

2012-03-17 Thread Bill Lorensen
Folks, I've recently created a number of super builds using CMake's External Project mechanism. Each external project requires some sort of download, configuration, build and possibly install. The CMake defines needed to correctly access the results of the external project vary significantly. The

Re: [CMake] ExternalProject_Add examples

2012-03-17 Thread Bill Lorensen
collect a skeleton for each external package. Bill On Sat, Mar 17, 2012 at 2:11 PM, Marcus D. Hanwell marcus.hanw...@kitware.com wrote: On Sat, Mar 17, 2012 at 5:03 PM, Bill Lorensen bill.loren...@gmail.com wrote: Folks, I've recently created a number of super builds using CMake's External

Re: [CMake] Compile flag issues and VS Express

2012-01-30 Thread Bill Lorensen
ITK and VTK both build fine if I remove the /Zm1000 flag. On Mon, Jan 30, 2012 at 10:44 AM, Bill Hoffman bill.hoff...@kitware.com wrote: On 1/28/2012 10:51 AM, David Cole wrote: Seems reasonable. Is anybody worried that changing the default values of these flags would have a negative impact

[CMake] Compile flag issues and VS Express

2012-01-28 Thread Bill Lorensen
Folks, I'm using VS 2010 Express. When ever I build a VTK or ITK related app I get errors regarding virtual memory and warnings about deprecated compiler flags: use 'EHsc' instead of 'GX' I always have to remove the /Zm1000 flag and add the /EHsc flag. I assumed this was do to something

Re: [CMake] Compile flag issues and VS Express

2012-01-28 Thread Bill Lorensen
David, Someone recently posted a BUG for this: http://www.gccxml.org/Bug/view.php?id=11913 Bill On Sat, Jan 28, 2012 at 4:31 PM, Bill Lorensen bill.loren...@gmail.com wrote: I think if you make the changes specific to VS 2010 they should be OK. On Sat, Jan 28, 2012 at 10:51 AM, David Cole

Re: [CMake] Compile flag issues and VS Express

2012-01-28 Thread Bill Lorensen
Sorry, it was not recent, it was march 2011. On Sat, Jan 28, 2012 at 4:38 PM, Bill Lorensen bill.loren...@gmail.com wrote: David, Someone recently posted a BUG for this: http://www.gccxml.org/Bug/view.php?id=11913 Bill On Sat, Jan 28, 2012 at 4:31 PM, Bill Lorensen bill.loren

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread Bill Lorensen
My version is 3.18 and I have to add c:/MinGW/bin to my windows Path otherwise the I get the missing dll error. I did not have to do this in earlier mingw versions. Notice I set it in Path and not PATH. Bill On Thu, Jun 2, 2011 at 4:16 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread Bill Lorensen
AM, Bill Lorensen bill.loren...@gmail.com wrote: My version is 3.18 and I have to add c:/MinGW/bin to my windows Path otherwise the I get the missing dll error. I did not have to do this in earlier mingw versions. Notice I set it in Path and not PATH. Path and PATH are equivalent variable

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread Bill Lorensen
wrote: On 6/3/2011 8:10 AM, Bill Lorensen wrote: My version is 3.18 and I have to add c:/MinGW/bin to my windows Path otherwise the I get the missing dll error. I did not have to do this in earlier mingw versions. Notice I set it in Path and not PATH. Strange, they must have changed the version

Re: [CMake] Missing libgmp-10.dll

2011-06-03 Thread Bill Lorensen
My Computer - View System Information - Advanced - Environment Variables - System Variables - Path -. Edit (or New) - C;/MinGW/bin;... On Fri, Jun 3, 2011 at 4:47 PM, David Cole david.c...@kitware.com wrote: On Fri, Jun 3, 2011 at 4:36 PM, Bill Lorensen bill.loren...@gmail.com wrote: Dave

Re: [CMake] CMAKE - troubles finding executables/paths - Windows 7 / MinGW

2011-06-01 Thread Bill Lorensen
I can't reproduce the problem although I did recently upgrade to cmake 2.8.4. It is important to have c:/MinGW/bin (or your bin location) in the system path. On Tue, May 31, 2011 at 2:00 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 5/31/2011 12:57 PM, Bill Lorensen wrote: Steve, I'm

Re: [CMake] CMAKE - troubles finding executables/paths - Windows 7 / MinGW

2011-06-01 Thread Bill Lorensen
wrote: On 6/1/2011 10:13 AM, Bill Lorensen wrote: I can't reproduce the problem although I did recently upgrade to cmake 2.8.4. It is important to have c:/MinGW/bin (or your bin location) in the system path. If c:/MinGW/bin is in your PATH then it will always work.  However, it should also

Re: [CMake] CMAKE - troubles finding executables/paths - Windows 7 / MinGW

2011-05-31 Thread Bill Lorensen
Steve, I'm not sure why cmake won't find mingw's make. I build with mingw every day. If I run the cmake gui from a fresh build tree, I get the same error. Then I use the gui to browse to the location of make.exe and then all runs fine. Bill On Tue, May 31, 2011 at 12:08 PM, Steve Westenbroek

Re: [CMake] CMake pod cast

2011-05-28 Thread Bill Lorensen
Bill, Nice pod cast. The hosts asked very good questions and your responses were right on. They were very objective and your answers were objective. Bill On Thu, May 26, 2011 at 10:14 PM, Bill Hoffman bill.hoff...@kitware.com wrote: Last week I did an interview for the High Performance

[CMake] Suppress dynamic analysis for a given test

2011-05-10 Thread Bill Lorensen
Is there a cmake/ctest mechanism to suppress dynamic analysis for a given test? Bill ___ 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

Re: [CMake] Suppress dynamic analysis for a given test

2011-05-10 Thread Bill Lorensen
...@cmake.org [mailto:cmake-boun...@cmake.org] *On Behalf Of *Bill Lorensen *Sent:* Tuesday, May 10, 2011 6:07 AM *To:* CMake mailing list *Subject:* [CMake] Suppress dynamic analysis for a given test Is there a cmake/ctest mechanism to suppress dynamic analysis for a given test? Bill

Re: [CMake] Using gcov/lcov and valgrind with cmake

2010-11-05 Thread Bill Lorensen
Try adding these (with proper paths) to your CMakeLists.txt file: CMAKE_BUILD_TYPE:STRING=Debug COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov CMAKE_C_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage CMAKE_CXX_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage

Re: [CMake] EXECUTABLE_OUTPUT_PATH is empty in Nightly target

2010-11-05 Thread Bill Lorensen
be found. Any ideas why EXECUTABLE_OUTPUT_PATH is empty and how to fix that? Am 05.11.2010 13:39, schrieb David Cole: Bill means your CMakeCache.txt file, not your CMakeLists.txt file. (Pretty sure...) :-) On Fri, Nov 5, 2010 at 8:30 AM, Bill Lorensen bill.loren...@gmail.com wrote: Try adding

Re: [CMake] Using gcov/lcov and valgrind with cmake

2010-11-05 Thread Bill Lorensen
CMakeLists.txt file. (Pretty sure...) :-) On Fri, Nov 5, 2010 at 8:30 AM, Bill Lorensen bill.loren...@gmail.com wrote: Try adding these (with proper paths) to your CMakeLists.txt file: CMAKE_BUILD_TYPE:STRING=Debug COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov CMAKE_C_FLAGS:STRING=-g -O0  -fprofile-arcs

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Bill Lorensen
You can filter warnings with regular expressions for dashboard submissions. But, I assume you want to not see them when you build the system? On Mon, May 10, 2010 at 1:15 PM, Kevin Burge kevin.bu...@systemware.com wrote: The trick is I want the compiler to issue the warnings I need to filter for

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-08 Thread Bill Lorensen
Attached is my DartConfiguration.tcl I'm using cmake version 2.8.0 Bill On Sat, May 8, 2010 at 9:35 AM, Bill Hoffman bill.hoff...@kitware.com wrote: On 5/7/2010 5:25 PM, Bill Lorensen wrote: I'm willing to try anything. Let's start from scratch. What are the proper cmake setting I should

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-08 Thread Bill Lorensen
, that the CMakeLists.txt file is missing some critical git related stuff that is being supplied by the ctest scripts. Bill On Sat, May 8, 2010 at 10:38 AM, Bill Lorensen bill.loren...@gmail.com wrote: Attached is my DartConfiguration.tcl I'm using cmake version 2.8.0 Bill On Sat, May 8, 2010 at 9:35 AM, Bill

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-08 Thread Bill Lorensen
OK, I believe that CMake version 2.8.0 does not support git properly. I just pulled the nightly cmake and it configured my project correctly (I think). At least on linux. I'm not sure about the latest 2.8.x version. Bill On Sat, May 8, 2010 at 12:21 PM, Bill Lorensen bill.loren...@gmail.com

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-08 Thread Bill Lorensen
2.8.1 worked great. Thanks, Bill On Sat, May 8, 2010 at 1:12 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 5/8/2010 12:40 PM, Bill Lorensen wrote: OK, I believe that CMake version 2.8.0 does not support git properly. I just pulled the nightly cmake and it configured my project

[CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-07 Thread Bill Lorensen
I have a project that uses VTK. The project uses git for its repository. I get the subject message. I have defined set( CTEST_GIT_COMMAND git ) SET(UPDATE_COMMAND ${GITCOMMAND}) SET(UPDATE_OPTIONS ${GIT_UPDATE_OPTIONS}) How can I resolve this issue. Bill

Re: [CMake] Cannot find UpdateCommand or GITCommand configuration key.

2010-05-07 Thread Bill Lorensen
:21 PM, Tyler Roscoe ty...@cryptio.net wrote: On Fri, May 07, 2010 at 05:10:59PM -0400, Bill Lorensen wrote: I get the subject message. I have defined set( CTEST_GIT_COMMAND git ) SET(UPDATE_COMMAND ${GITCOMMAND}) SET(UPDATE_OPTIONS ${GIT_UPDATE_OPTIONS}) Did you try CTEST_UPDATE_COMMAND

Re: [CMake] git too difficult CMake switching to sccs

2010-04-01 Thread Bill Lorensen
How about 7 track tapes? On Thu, Apr 1, 2010 at 9:41 AM, Michael Wild them...@gmail.com wrote: I vote for sending diffs on 8 floppies (3.5 are such fiddly things) and use tar for archiving purposes. And all contributors are encouraged to use ed to do the coding since it is much less

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Bill Lorensen
http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links On Mon, Dec 14, 2009 at 3:28 AM, Marcel Loose lo...@astron.nl wrote: On Sat, 2009-12-12 at 12:02 -0500, Bill Hoffman wrote: Alan W. Irwin wrote: On 2009-12-12 09:44-0500 David Cole wrote: On Fri, Dec 11, 2009 at 10:04 AM,

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-14 Thread Bill Lorensen
IN itk this is what we typically do in ctest scripts. After CTEST_CONFIGURE (BUILD ${CTEST_BINARY_DIRECTORY}) place CTEST_READ_CUSTOM_FILES(${CTEST_BINARY_DIRECTORY}) On Fri, Nov 13, 2009 at 3:49 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Wednesday 11 November 2009, Maik Beckmann

Re: [CMake] CMake 2.8.0 RC 7 ready for testing!

2009-11-13 Thread Bill Lorensen
Bill, Is there some way this can be added to the cmake test suite? Remember, If it's not tested, it's broken. Bill On Thu, Nov 12, 2009 at 5:34 PM, Bill Hoffman bill.hoff...@kitware.com wrote: James Bigler wrote: CMake then chokes on the PACKAGE_NAME due to the \O which should be \\O.  I

Re: [CMake] help me to resolve this issue

2009-11-03 Thread Bill Lorensen
Try: add_executable(hassel-film has-main.cpp) set_target_properties(hassel-film PROPERTIES COMPILE_DEFINITIONS V_FILM) add_executable(hassel-digital has-main.cpp) set_target_properties(hassel-digital PROPERTIES COMPILE_DEFINITIONS V_DIGITAL) On Tue, Nov 3, 2009 at 10:40 PM, Alex H

Re: [CMake] [Insight-developers] parallel memcheck with cmake 2.8

2009-10-12 Thread Bill Lorensen
If you do change machines, please update the suppressions file. Leave the old suppressions and just add new ones. Thanks, Bill 2009/10/12 Gaëtan Lehmann gaetan.lehm...@jouy.inra.fr: Hi, Is it safe already to use the awesome -j option of ctest 2.8 to run memcheck? Is yes, I'd like to use a

Re: [CMake] making to compile regardless of compile errors?

2009-10-05 Thread Bill Lorensen
Pick your favorite... make -i -i, --ignore-errors Ignore all errors in commands executed to remake files. make -k -k, --keep-going Continue as much as possible after an error. While the target that failed, and those that depend on it, cannot

Re: [CMake] Why are blank-delimited strings in commands escaped on Linux?

2009-10-01 Thread Bill Lorensen
I think if you specify each arg as a string it should work as expected. -L/usr/lib -lcairo On Thu, Oct 1, 2009 at 6:47 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: First, to give some background for the question in the subject line, we have implemented OCaml language support for PLplot

Re: [CMake] weird output with ctest

2009-08-31 Thread Bill Lorensen
It should print when you specify -V or -VV. Can you post a small example that does not print? Bill On Sun, Aug 30, 2009 at 9:14 PM, Alex Haditya15...@hotmail.com wrote: Well problem is why doesn't it print the std::cout that I've put inside main? while it's running main Date: Sun, 30

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-10 Thread Bill Lorensen
gcc has a command line option: -Xassembler argPass arg on to the assembler Will this help? Bill On Fri, Jul 10, 2009 at 10:41 AM, Marcel Looselo...@astron.nl wrote: Hi all, I'm trying to build a library that has, amongst a number of C/C++ sources, a number of assembly files as

Re: [CMake] if(string MATCHES regex) question

2009-07-03 Thread Bill Lorensen
Ancient is in the eye of the beholder. The CMake folks appear to take backward compatibility seriously. You will appreciate this in ten years when you revive a project that uses CMake. Bill On Fri, Jul 3, 2009 at 12:54 PM, Marcel Looselo...@astron.nl wrote: Wow, So this really is ancient

Re: [CMake] continuous builds best practices?

2009-04-03 Thread Bill Lorensen
I use ctest scripts. Most itk and vtk dashboards are driven by ctest scripts. Here is the one I use for a continuous Borland build. You need to start it once a day. ctest will do the proper continuous checking of the repository: http://www.cdash.org/CDash/viewNotes.php?buildid=305082 Here is one

Re: [CMake] CMake used by Boost?

2009-03-21 Thread Bill Lorensen
I don't use boost, but a quick google search found this: https://svn.boost.org/trac/boost/wiki/CMakeConfigAndBuild Bill On Sat, Mar 21, 2009 at 12:28 PM, Piotr Dobrogost p...@opensource.autoera.pl wrote: Hi On the following page http://www.cmake.org/cmake/help/documentation.html one can

Re: [CMake] gcov results not accurate

2009-03-05 Thread Bill Lorensen
In itk, we have header smoke tests that include each header file. The test main just returns success. This will cause non-templated code to be compiled and it will show up in the coverage reoptrs. There is still a problem if you use templated code and do not instantiate at least one copy of the

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Bill Lorensen
I'm not sure if this will be useful, but there is info on the wxwidgets wiki regarding the use of cmake http://wiki.wxwidgets.org/CMake Bill On Tue, Dec 23, 2008 at 1:05 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Dec 23, 2008 at 11:10 AM, Michael Jackson mike.jack...@bluequartz.net

Re: [CMake] Weired behavior with CTest Fedora 10 g++ 4.3.2

2008-12-18 Thread Bill Lorensen
I did a clean build last night. This morning I see one bogus failure. Bill On Wed, Dec 17, 2008 at 1:18 PM, Bill Lorensen bill.loren...@gmail.com wrote: Some more information. This is not a clean build each night. With the compiler flags I use, it just takes too long. However, tonight, I'll

Re: [CMake] Weired behavior with CTest Fedora 10 g++ 4.3.2

2008-12-17 Thread Bill Lorensen
David, I have a Fedora 9, ctest 2.6-patch 1 RC-11 and gcc 4.3.0 that exhibits similar behavior. This is for the itk dashboard which has about 1400 tests on over 30 platforms. I have only noticed this on this one platform. Both tests segfault without any output. When I rerun them manually, they

Re: [CMake] Weired behavior with CTest Fedora 10 g++ 4.3.2

2008-12-17 Thread Bill Lorensen
Some more information. This is not a clean build each night. With the compiler flags I use, it just takes too long. However, tonight, I'll clean the build tree. Perhaps some system file has been updated. I let Fedora automatically update my system. Bill On Wed, Dec 17, 2008 at 1:11 PM, Bill

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Bill Lorensen
SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0) On Wed, Feb 27, 2008 at 10:21 PM, Surya Kiran Gullapalli [EMAIL PROTECTED] wrote: Hello all, I'm building a project, where in one compilation of one file gets stuck due to optimization flag (-O3) with gcc. I want to turn off the

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Bill Lorensen
, 2008 at 11:22 PM, Surya Kiran Gullapalli [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 9:34 AM, Bill Lorensen [EMAIL PROTECTED] wrote: SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0) Nope, It did not work. Cmake is not using the compile flags for that specific file

Re: [CMake] ctest - how to set environment

2008-02-20 Thread Bill Lorensen
If you use ctest scripts (http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest ) like this one from vtk: http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080220-0300-Nightly/Notes.html You can set the CTEST_ENVIRONMENT as it does: # set any extra envionment variables here SET

[CMake] Issues with CMakeOutput.log and CMakeError.log

2008-02-17 Thread Bill Lorensen
Folks, Most CMake projects use TRY_COMPILE and CMake macros to test for include files, flags, capabilities of the compiler etc. The CMake/Modules macros append the output of these commands to ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log or

Re: [CMake] Custom cache

2008-02-06 Thread Bill Lorensen
vtk and itk make heavy use of ctest scripts ( http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest) to generate/save cache settings. We use them for many of the nightly tests: http://www.itk.org/Testing/Dashboard/MostRecentResults-Nightly/Dashboard.html

Re: [CMake] Adding a header dependency on a generated header file. (was PRE_BUILD custom commands don't appear to be working....)

2007-12-17 Thread Bill Lorensen
Josef, Here's what I do. The fooCLP.h file is generated by a custom command. # mark the .clp file as a header file SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${TMP_FILENAME}CLP.h PROPERTIES HEADER_FILE_ONLY TRUE) SET_SOURCE_FILES_PROPERTIES(${TMP_FILENAME}.cxx

Re: [CMake] setting defines using CMAKE_CXX_FLAGS

2007-11-26 Thread Bill Lorensen
Try SET( CMAKE_CXX_FLAGS -D DEF1 -D DEF2 -D DEF3 -D DEF4) On Nov 26, 2007 2:03 PM, Jesse Corrington [EMAIL PROTECTED] wrote: I am using CMAKE_CXX_FLAGS to set defines because I want to be able to set different ones for debug and release using CMAKE_CXX_FLAGS_DEBUG/RELEASE, which the other

Re: [CMake] setting other compile flag for 1 source file

2007-11-25 Thread Bill Lorensen
Cees, You can set compiler flags on individual files using SET_SOURCE_FILES_PROPERTIES. IF(CMAKE_COMPILER_IS_GNUCC) SET_SOURCE_FILES_PROPERTIES( mycode.cxx PROPERTIES COMPILE_FLAGS -O0 ) ENDIF(CMAKE_COMPILER_IS_GNUCC) Bill On Nov 18, 2007 10:32 AM, Cees Wesseling [EMAIL PROTECTED] wrote:

Re: [CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Bill Lorensen
There is no need to do a make install ctest -D Continuous updates, configures, builds and runs the tests. Here is the ctest script that I use for continuous builds under linux: http://www.itk.org/Testing/Sites/BillsLinuxLaptop/Linux-gcc41-release/20070724-0801-Continuous/Notes.html Look in

Re: [CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Bill Lorensen
than 'ctest -D ContinuousStart ctest -D ContinuousUpdate ctest -D ContinuousConfigure ctest -D ContinuousBuild ctest -D ContinuousSubmit' ? Petr Bill Lorensen wrote: There is no need to do a make install ctest -D Continuous updates, configures, builds and runs the tests. Here is the ctest

[CMake] Add new suffix rules

2006-04-16 Thread Bill Lorensen
I have added a custom command to generate files with extension .clp. UTILITY_SOURCE(GENERATECLP_EXE GenerateCLP ./ GenerateCLP.cxx) MACRO(GENERATECLP XML) # For each XML file FOREACH(FILE ${XML}) # what is the filename without the extension GET_FILENAME_COMPONENT(TMP_FILENAME ${FILE} NAME_WE)

Re: [CMake] CMake 2.2 and MAKECOMMAND on Visual Studio 7

2006-03-06 Thread Bill Lorensen
I thought that might be true. Is this reasonable behavior or should I file a bug report? Bill At 04:49 PM 3/6/2006, William A. Hoffman wrote: At 03:19 PM 3/6/2006, Lorensen, William E (GE, Research) wrote: Folks, I recently updated from cmake 2.0 to cmake 2.2. I'm running Visual Studio 7.