You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.0 KiB

--- /home/builder/termux-packages/packages/libhdf5/CMakeLists.txt.orig 2018-04-03 22:59:37.677363132 +0000
+++ src/src/CMakeLists.txt 2018-04-04 06:18:37.177298348 +0000
@@ -848,13 +848,13 @@
target_link_libraries (H5detect "ws2_32.lib")
endif ()
-set (CMD $<TARGET_FILE:H5detect>)
-add_custom_command (
- OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
- COMMAND ${CMD}
- ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c
- DEPENDS H5detect
-)
+#set (CMD $<TARGET_FILE:H5detect>)
+#add_custom_command (
+# OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
+# COMMAND ${CMD}
+# ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c
+# DEPENDS H5detect
+#)
add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
TARGET_C_PROPERTIES (H5make_libsettings STATIC " " " ")
@@ -862,14 +862,14 @@
target_link_libraries (H5make_libsettings "ws2_32.lib")
endif ()
-set (CMD $<TARGET_FILE:H5make_libsettings>)
-add_custom_command (
- OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c
- COMMAND ${CMD}
- ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c
- DEPENDS H5make_libsettings
- WORKING_DIRECTORY ${HDF5_BINARY_DIR}
-)
+#set (CMD $<TARGET_FILE:H5make_libsettings>)
+#add_custom_command (
+# OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c
+# COMMAND ${CMD}
+# ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c
+# DEPENDS H5make_libsettings
+# WORKING_DIRECTORY ${HDF5_BINARY_DIR}
+#)
#-----------------------------------------------------------------------------
# Add H5Tinit source to build - generated by H5Detect/CMake at configure time
@@ -903,22 +903,22 @@
if (BUILD_SHARED_LIBS)
file (MAKE_DIRECTORY "${HDF5_BINARY_DIR}/shared")
- set (CMD $<TARGET_FILE:H5detect>)
- add_custom_command (
- OUTPUT ${HDF5_BINARY_DIR}/shared/H5Tinit.c
- COMMAND ${CMD}
- ARGS > ${HDF5_BINARY_DIR}/shared/H5Tinit.c
- DEPENDS H5detect
- WORKING_DIRECTORY ${HDF5_BINARY_DIR}/shared
- )
- set (CMD $<TARGET_FILE:H5make_libsettings>)
- add_custom_command (
- OUTPUT ${HDF5_BINARY_DIR}/shared/H5lib_settings.c
- COMMAND ${CMD}
- ARGS > ${HDF5_BINARY_DIR}/shared/H5lib_settings.c
- DEPENDS H5make_libsettings
- WORKING_DIRECTORY ${HDF5_BINARY_DIR}
- )
+# set (CMD $<TARGET_FILE:H5detect>)
+# add_custom_command (
+# OUTPUT ${HDF5_BINARY_DIR}/shared/H5Tinit.c
+# COMMAND ${CMD}
+# ARGS > ${HDF5_BINARY_DIR}/shared/H5Tinit.c
+# DEPENDS H5detect
+# WORKING_DIRECTORY ${HDF5_BINARY_DIR}/shared
+# )
+# set (CMD $<TARGET_FILE:H5make_libsettings>)
+# add_custom_command (
+# OUTPUT ${HDF5_BINARY_DIR}/shared/H5lib_settings.c
+# COMMAND ${CMD}
+# ARGS > ${HDF5_BINARY_DIR}/shared/H5lib_settings.c
+# DEPENDS H5make_libsettings
+# WORKING_DIRECTORY ${HDF5_BINARY_DIR}
+# )
set (shared_gen_SRCS ${HDF5_BINARY_DIR}/shared/H5Tinit.c ${HDF5_BINARY_DIR}/shared/H5lib_settings.c)
add_library (${HDF5_LIBSH_TARGET} SHARED ${common_SRCS} ${shared_gen_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS} ${H5_GENERATED_HEADERS})
TARGET_C_PROPERTIES (${HDF5_LIBSH_TARGET} SHARED " " " ")