]> git.pld-linux.org Git - packages/hdf5.git/blob - hdf5-cmake.patch
- added cmake patch, package cmake support files for hdf5-based packages using cmake...
[packages/hdf5.git] / hdf5-cmake.patch
1 --- hdf5-1.8.10-patch1/config/cmake/hdf5-targets.cmake.in.orig  1970-01-01 01:00:00.000000000 +0100
2 +++ hdf5-1.8.10-patch1/config/cmake/hdf5-targets.cmake.in       2013-04-02 18:10:51.166052034 +0200
3 @@ -0,0 +1,36 @@
4 +# Generated by CMake 2.8.10.2
5 +
6 +IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
7 +   MESSAGE(FATAL_ERROR "CMake >= 2.6.0 required")
8 +ENDIF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
9 +CMAKE_POLICY(PUSH)
10 +CMAKE_POLICY(VERSION 2.6)
11 +#----------------------------------------------------------------
12 +# Generated CMake target import file.
13 +#----------------------------------------------------------------
14 +
15 +# Commands may need to know the format version.
16 +SET(CMAKE_IMPORT_FILE_VERSION 1)
17 +
18 +# Create imported target hdf5
19 +ADD_LIBRARY(hdf5 STATIC IMPORTED)
20 +
21 +# Create imported target hdf5_f90cstub
22 +ADD_LIBRARY(hdf5_f90cstub STATIC IMPORTED)
23 +
24 +# Create imported target hdf5_fortran
25 +ADD_LIBRARY(hdf5_fortran STATIC IMPORTED)
26 +
27 +# Create imported target hdf5_cpp
28 +ADD_LIBRARY(hdf5_cpp STATIC IMPORTED)
29 +
30 +# Load information for each installed configuration.
31 +GET_FILENAME_COMPONENT(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
32 +FILE(GLOB CONFIG_FILES "${_DIR}/hdf5-targets-*.cmake")
33 +FOREACH(f ${CONFIG_FILES})
34 +  INCLUDE(${f})
35 +ENDFOREACH(f)
36 +
37 +# Commands beyond this point should not need to know the version.
38 +SET(CMAKE_IMPORT_FILE_VERSION)
39 +CMAKE_POLICY(POP)
40 --- hdf5-1.8.10-patch1/config/cmake/hdf5-targets-noconfig.cmake.in.orig 1970-01-01 01:00:00.000000000 +0100
41 +++ hdf5-1.8.10-patch1/config/cmake/hdf5-targets-noconfig.cmake.in      2013-04-02 18:12:17.399383569 +0200
42 @@ -0,0 +1,79 @@
43 +#----------------------------------------------------------------
44 +# Generated CMake target import file for configuration "".
45 +#----------------------------------------------------------------
46 +
47 +# Commands may need to know the format version.
48 +SET(CMAKE_IMPORT_FILE_VERSION 1)
49 +
50 +# Compute the installation prefix relative to this file.
51 +GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
52 +GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
53 +GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
54 +GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
55 +
56 +# Make sure the targets which have been exported in some other 
57 +# export set exist.
58 +
59 +# Import target "hdf5" for configuration ""
60 +SET_PROPERTY(TARGET hdf5 APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
61 +SET_TARGET_PROPERTIES(hdf5 PROPERTIES
62 +  IMPORTED_LINK_INTERFACE_LANGUAGES_NOCONFIG "C"
63 +  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "m;sz"
64 +  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@lib@/libhdf5.so"
65 +  )
66 +
67 +LIST(APPEND _IMPORT_CHECK_TARGETS hdf5 )
68 +LIST(APPEND _IMPORT_CHECK_FILES_FOR_hdf5 "${_IMPORT_PREFIX}/@lib@/libhdf5.so" )
69 +
70 +# Make sure the targets which have been exported in some other 
71 +# export set exist.
72 +
73 +# Import target "hdf5_fortran" for configuration ""
74 +SET_PROPERTY(TARGET hdf5_fortran APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
75 +SET_TARGET_PROPERTIES(hdf5_fortran PROPERTIES
76 +  IMPORTED_LINK_INTERFACE_LANGUAGES_NOCONFIG "Fortran"
77 +  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "hdf5_f90cstub;hdf5"
78 +  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@lib@/libhdf5_fortran.so"
79 +  )
80 +
81 +#LIST(APPEND _IMPORT_CHECK_TARGETS hdf5_fortran )
82 +LIST(APPEND _IMPORT_CHECK_FILES_FOR_hdf5_fortran "${_IMPORT_PREFIX}/@lib@/libhdf5_fortran.so" )
83 +
84 +# Make sure the targets which have been exported in some other 
85 +# export set exist.
86 +
87 +# Import target "hdf5_cpp" for configuration ""
88 +SET_PROPERTY(TARGET hdf5_cpp APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
89 +SET_TARGET_PROPERTIES(hdf5_cpp PROPERTIES
90 +  IMPORTED_LINK_INTERFACE_LANGUAGES_NOCONFIG "CXX"
91 +  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "hdf5"
92 +  IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@lib@/libhdf5_cpp.so"
93 +  )
94 +
95 +#LIST(APPEND _IMPORT_CHECK_TARGETS hdf5_cpp )
96 +LIST(APPEND _IMPORT_CHECK_FILES_FOR_hdf5_cpp "${_IMPORT_PREFIX}/@lib@/libhdf5_cpp.so" )
97 +
98 +# Loop over all imported files and verify that they actually exist
99 +FOREACH(target ${_IMPORT_CHECK_TARGETS} )
100 +  FOREACH(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
101 +    IF(NOT EXISTS "${file}" )
102 +      MESSAGE(FATAL_ERROR "The imported target \"${target}\" references the file
103 +   \"${file}\"
104 +but this file does not exist.  Possible reasons include:
105 +* The file was deleted, renamed, or moved to another location.
106 +* An install or uninstall procedure did not complete successfully.
107 +* The installation package was faulty and contained
108 +   \"${CMAKE_CURRENT_LIST_FILE}\"
109 +but not all the files it references.
110 +")
111 +    ENDIF()
112 +  ENDFOREACH()
113 +  UNSET(_IMPORT_CHECK_FILES_FOR_${target})
114 +ENDFOREACH()
115 +UNSET(_IMPORT_CHECK_TARGETS)
116 +
117 +# Cleanup temporary variables.
118 +SET(_IMPORT_PREFIX)
119 +
120 +# Commands beyond this point should not need to know the version.
121 +SET(CMAKE_IMPORT_FILE_VERSION)
This page took 0.045077 seconds and 4 git commands to generate.