[CMake] CMAKE_INSTALL_PREFIX on Windows Machine

Holmes, David R. III, Ph.D. [RO RM1-24] Holmes.David3 at mayo.edu
Mon Feb 7 18:24:26 EST 2011


David-

 

Sorry that I was not clear.  I have not found (but have not tried) to
see if this is a problem with other cmake projects.

 

To be more clear, I looked in the top-level GDCM CMakeLists.txt file and
found a couple of small references to the CMAKE_INSTALL_PREFIX variable;
none of the references seemed to point to a renaming of the install
directory (although I could have easily missed something).  A search
through the rest of the SRC tree didn't find any relevant references to
the cmake configure process:

 

./Source/Common/gdcmConfigure.h.in

./Source/DataDictionary/gdcmGlobal.cxx

./PACKAGER

./CMakeLists.txt

 

I was not able to attach the CMakeLists.txt file (too big), but the only
two references are:

 

# At the beginning

 

MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX)

 

# In the CPack section

 

    IF(${CMAKE_INSTALL_PREFIX} MATCHES
${CPACK_PACKAGE_INSTALL_DIRECTORY})

    ELSE(${CMAKE_INSTALL_PREFIX} MATCHES
${CPACK_PACKAGE_INSTALL_DIRECTORY})

    STRING(REPLACE ${PROJECT_NAME} ${CPACK_PACKAGE_INSTALL_DIRECTORY}
dummy ${CMAKE_INSTALL_PREFIX} )

    SET(CMAKE_INSTALL_PREFIX ${dummy} CACHE PATH "" FORCE)

    ENDIF(${CMAKE_INSTALL_PREFIX} MATCHES
${CPACK_PACKAGE_INSTALL_DIRECTORY})

 

Thanks

 

david

 

 

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

David R Holmes III

Biomedical Imaging Resource Core Facility Director

 

Department of Physiology and Biomedical Engineering 

Mayo Clinic College of Medicine 

 

Ph:  507-266-4250       Fax:  507-284-1632 

holmes.david3 at mayo.edu <mailto:holmes.david3 at mayo.edu> 

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

 

From: David Cole [mailto:david.cole at kitware.com] 
Sent: Monday, February 07, 2011 4:35 PM
To: Holmes, David R. III, Ph.D. [RO RM1-24]
Cc: cmake at cmake.org
Subject: Re: [CMake] CMAKE_INSTALL_PREFIX on Windows Machine

 

When you say "It does not appear to be something specific to the GDCM
CMakeLists.txt file"

do you mean that you see this behavior when configuring other projects
with CMake?

What do you get if you search for CMAKE_INSTALL_PREFIX in the GDCM
source tree?



On Mon, Feb 7, 2011 at 5:03 PM, Holmes, David R. III, Ph.D. [RO RM1-24]
<Holmes.David3 at mayo.edu> wrote:

Colleagues-

 

I believe that I have run in a bug with cmake, but being a novice, I
cannot say.  I would greatly appreciate any help.  Here is the story:

 

(1)    I'm trying to build GDCM-2.0.17 and a  Windows machine (same
issue if I specify 32-bit or 64-bit build) using CMAKE-2.8.3

(2)    This is how I have chosen to setup my environment:

 

S: (or any drive)

  |

  + GDCM-2.0.17

      |

      + SRC

          |

               -- [GDCM Source Tree]

           +  BUILD  

               |

               -- PC_NT_32

               |  |

               |    -- [GDCM Build files for 32 bit]

               |

               -- PC_NT_64

                  |

                   -- [GDCM Build files for 64 bit]

           +  INSTALL  

               |

               -- PC_NT_32

               |  |

               |    -- [GDCM Installed files for 32 bit]

               |

               -- PC_NT_64

                  |

                   -- [GDCM Installed files for 64 bit]

 

(3)    I have run both cmake.exe and cmake-gui.exe with the same result.

 

(4)    After the first configure, I change the CMAKE_INSTALL_PREFIX to
"s:/GDCM-2.0.17/INSTALL/PC_NT_32"

(5)    I run configure again

(6)    It changes CMAKE_INSTALL_PREFIX to "s:/GDCM 2.0-2.0.17/PC_NT_32"

(7)    I change it back and it requires that I run configure again

(8)    Repeat from step (4) with no resolution

 

I do not see this issue when I run on a linux machine.  It does not
appear to be something specific to the GDCM CMakeLists.txt file

 

As I said, I would appreciate any thoughts.

 

Thanks

 

david

 

 

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

David R Holmes III

Biomedical Imaging Resource Core Facility Director

 

Department of Physiology and Biomedical Engineering 

Mayo Clinic College of Medicine 

 

Ph:  507-266-4250       Fax:  507-284-1632 

holmes.david3 at mayo.edu

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

 


_______________________________________________
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:
http://www.cmake.org/mailman/listinfo/cmake

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110207/89ecc2e1/attachment-0001.htm>


More information about the CMake mailing list