Same here... and this looks like a regression:

A simple CMakeLists.txt like this can reproduce it.

set(CMAKE_BUILD_TYPE Debug)
find_package(HDF5 COMPONENTS C HL REQUIRED)
add_executable(foo foo.cpp)
target_link_libraries(foo ${HDF5_LIBRARIES})

FindHDF5.cmake misuses CMAKE_BUILD_TYPE and CMAKE_CONFIGURATION_TYPES when 
assembling the HDF5_LIBRARIES variable.  If I clear out the CMAKE_BUILD_TYPE 
variable, then the problem goes away.

Clint


----- Original Message -----
> On 08/30/2013 02:49 PM, Robert Maynard wrote:
> > The CMake 2.8.12 release candidate stream continues!
> > You can find the source and binaries here:
> > http://www.cmake.org/files/v2.8/?C=M;O=D
> 
> Is it expected that this is now an error?
> 
> CMake Error: The following variables are used in this project, but they are
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake
> files:
> HDF5_dl_LIBRARY_DEBUG (ADVANCED)
>      linked by target "netcdf" in directory
> /builddir/build/BUILD/netcdf-c-4.3.1-rc2/liblib
>      linked by target "ncgen" in directory
> /builddir/build/BUILD/netcdf-c-4.3.1-rc2/ncgen
>      linked by target "nccopy" in directory
> /builddir/build/BUILD/netcdf-c-4.3.1-rc2/ncdump
>      linked by target "ncdump" in directory
> /builddir/build/BUILD/netcdf-c-4.3.1-rc2/ncdump
>      linked by target "nctestserver" in directory
> /builddir/build/BUILD/netcdf-c-4.3.1-rc2/ncdap_test
> 
> Something has definitely changed with handling debug CMAKE_BUILD_TYPEs
> between
> 2.8.11.2 and 2.8.12-rc2.  I'm building netcdf 4.8.1-rc2 and it works fine
> with
> 2.8.11.2 but I get errors like the above with 2.8.12-rc2.  We build Fedora
> packages with either the Debug or RelWithDebugInfo build types so debug info
> is generated - though it is later stripped and put into a separate -debuginfo
> sub-package.  So the debug versions of libraries are generally not available
> at build time.
> 
> Could someone describe to me more of what is going on here?  There seems to
> be
> a new "debug" link mode or some such? I'm afraid this will be a real show
> stopper for Linux distributions.
> 
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       or...@nwra.com
> Boulder, CO 80301                   http://www.nwra.com
> --
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
> 
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to