But all of that is already taken care of by CMake. If the user simply
runs
Looking at CMake source for this, CMakeGenericSystem.cmake;
# Choose a default install prefix for this platform.
if(CMAKE_HOST_UNIX)
set(CMAKE_INSTALL_PREFIX "/usr/local"
CACHE PATH "Install path prefix, prepended onto install
directories.")
else()
GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
set(CMAKE_INSTALL_PREFIX
"${CMAKE_GENERIC_PROGRAM_FILES}/${PROJECT_NAME}"
CACHE PATH "Install path prefix, prepended onto install
directories.")
set(CMAKE_GENERIC_PROGRAM_FILES)
endif()
So maybe I need to fix HDF CMakeLists to just append the HDF folder:
#---------------------------------------------------------------------
--
--
---- # Set Install folder value
#---------------------------------------------------------------------
--
--
---- if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (CMAKE_HOST_UNIX)
set (CMAKE_INSTALL_PREFIX
"${CMAKE_INSTALL_PREFIX}/HDF_Group/${HDF5_PACKAGE_NAME}/${HDF5_PACKAGE
_V
ER
SION}">
CACHE PATH "Install path prefix, prepended onto install
directories."
FORCE)
else (CMAKE_HOST_UNIX)
GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
set (CMAKE_INSTALL_PREFIX
"${CMAKE_GENERIC_PROGRAM_FILES}/HDF_Group/${HDF5_PACKAGE_NAME}/${H
DF
5
_PACKAGE_VERSION}" CACHE PATH "Install path prefix, prepended onto
install directories.">
FORCE)
set (CMAKE_GENERIC_PROGRAM_FILES)
endif (CMAKE_HOST_UNIX)
endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Therefore unless the user sets CMAKE_INSTALL_PREFIX, the HDF default
on
unix would be:
/usr/local/HDF_Group/HDF5/1.8.13.
Comments?
Allen
On Tuesday, April 22, 2014 09:45:27 AM Michael Jackson wrote:
I agree that we can not please everyone but some defaults are just
"better"
than others. For UNIX systems I think it is pretty "rare" or at least
non-standard to place installed products at the "/" level so having
/HDFGroup goes against this "norm" that most developers are
expecting.
I don't see a problem with setting the CMAKE_INSTALL_PREFIX on the
first
run (or any subsequent run) of CMake to the users default.
cmake -DCMAKE_INSTALL_PREFIX=/Some/Path/To/HDF5 ../
isn't really any different than a ./configure --install …. line so
lets
just leave it as the CMake default value of /usr/local/ for Unix
systems.
Thanks for the help
Mike Jackson
On Apr 22, 2014, at 9:24 AM, Allen Byrne <byrn@hdfgroup.org> wrote:
Mike,
I hope to get Frameworks support working some time soon, but I can
understand your point.
The trouble with this is that no one is happy. I had the default and
someone complained so I tried a HDF default.
I will just go with the default CMake one and leave
CMAKE_INSTALL_PREFIX
alone.
Allen
On Tuesday, April 22, 2014 08:47:37 AM Michael Jackson wrote:
I just tried the pre1 and the CMAKE_INSTALL_PREFIX is by default
set
to
/HDF_Group/HDF5/1.8.13 which is pretty non standard for OS X. I am
not
sure
what the intent was but maybe leaving the default of /usr/local/ is
the
better choice. /Frameworks _might_ be appropriate if frameworks
were
actually being built but my vote would be to just leave it as the
CMake
default value.
Thoughts?
---
Mike Jackson www.bluequartz.net
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdf
gr
ou
p.
org
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgr
ou
p.
org