[Insight-developers] Tcl failure on MacOSX-WrapITK

Johnson, Hans J hans-johnson at uiowa.edu
Tue Feb 22 15:33:13 EST 2011


In recent versions of CMake you should NOT use or depend upon EXECUTABLE_OUTPUT_PATH  or RUNTIME_OUTPUT_PATH.  They should be purged from ITK.


We should instead use:

CMAKE_LIBRARY_OUTPUT_DIRECTORY
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
CMAKE_RUNTIME_OUTPUT_DIRECTORY
CMAKE_BUNDLE_OUTPUT_DIRECTORY


("EXECUTABLE_OUTPUT_PATH", cmProperty::VARIABLE,
-     "Location for all executables in a project.",
+     "Old executable location variable.",
+     "This variable should no longer be used as of CMake 2.6.  "
+     "Use the RUNTIME_OUTPUT_DIRECTORY target property instead.  "
+     "It will override this variable if it is set.\n"
      "If set, this is the directory where all executables "
      "built during the build process will be placed.",false,
      "Variables that Control the Build");
   cm->DefineProperty
     ("LIBRARY_OUTPUT_PATH", cmProperty::VARIABLE,
-     "Location for all libraries in a project.",
+     "Old library location variable.",
+     "This variable should no longer be used as of CMake 2.6.  "
+     "Use the ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_PATH, and "
+     "RUNTIME_OUTPUT_DIRECTORY target properties instead.  "
+     "They will override this variable if they are set.\n"
      "If set, this is the directory where all the libraries "
      "built during the build process will be placed.",false,
      "Variables that Control the Build");



Perhaps Brad King would be kind enough to help us with the purge from ITKv4 since it requires CMake 2.8 anyway.


Hans

--
Hans J. Johnson, Ph.D.
hans-johnson at uiowa.edu
Assistant Professor of Psychiatry
University of Iowa Carver College of Medicine
W278 GH, 200 Hawkins Drive
Iowa City, Iowa 52242
Phone:  319-353-8587



From: Bradley Lowekamp <blowekamp at mail.nih.gov<mailto:blowekamp at mail.nih.gov>>
Date: Tue, 22 Feb 2011 15:24:04 -0500
To: Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr<mailto:gaetan.lehmann at jouy.inra.fr>>
Cc: ITK <insight-developers at itk.org<mailto:insight-developers at itk.org>>
Subject: Re: [Insight-developers] Tcl failure on MacOSX-WrapITK

That seems a bit odd to me. It was my understanding that CMake's EXECUTABLE_OUTPUT_PATH and RUNTIME_OUTPUT_PATH were suppose to take care of that type of thing. A quick grep across the toolkit shows that WrapITK is the only area using  CTEST_CONFIGURATION_TYPE. Have you tried using CXX_TEST_PATH?

Brad

On Feb 22, 2011, at 2:47 PM, Gaëtan Lehmann wrote:


Le 22 févr. 11 à 20:30, Bradley Lowekamp a écrit :

Gaetan,

I was just looking at the Tcl failures on my mini build:

http://www.cdash.org/CDash/viewTest.php?onlyfailed&buildid=874401

The odd thing was when I re-ran the tests on the same build when I was logged on, all the tests passed. Any ideas what may cause this?

Hi Brad,

The problem is that the path to itkwish is wrong when running the test with a build configuration. It is

 /playpen/blowekamp/MacOSX-WrapITK/ITK-build/bin/Release/itkwish

on your host while it should be

 /playpen/blowekamp/MacOSX-WrapITK/ITK-build/bin/itkwish

The tests are passing when you run it by hand because you are using

 ctest

while the equivalent command run by the ctest script is

 ctest -C Release

If you try this one, it would also fail.

I'm not sure how to fix that and keep it working on windows or xcode.

My hope is that a cmake variable can be used to either use the configuration to access the binary or not use it, but I've not found it so far.

Regards,

Gaëtan


--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr



========================================================

Bradley Lowekamp

Lockheed Martin Contractor for

Office of High Performance Computing and Communications

National Library of Medicine

blowekamp at mail.nih.gov<mailto:blowekamp at mail.nih.gov>


_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.html Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-developers

________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110222/02aeb46c/attachment.htm>


More information about the Insight-developers mailing list