summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-02 13:07:53 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-02 13:07:53 (GMT)
commit5f7f0ab517d9f4fbc11292a1bada37a74ba69b97 (patch)
tree30d3b5ccb0891adf79e8cf6f932efc89892c4508 /Modules
parentc555eca9ba8e518dd8f91159d94a2a2bf58916b0 (diff)
parentff3ccc1f2315d3de91ee6a90c8754ea554965c1d (diff)
downloadCMake-5f7f0ab517d9f4fbc11292a1bada37a74ba69b97.zip
CMake-5f7f0ab517d9f4fbc11292a1bada37a74ba69b97.tar.gz
CMake-5f7f0ab517d9f4fbc11292a1bada37a74ba69b97.tar.bz2
Merge branch 'FindHDF5-restore-default-C' into release
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake12
1 files changed, 2 insertions, 10 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 1c2c443..16764e0 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -100,18 +100,10 @@ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
set(HDF5_VALID_LANGUAGE_BINDINGS C CXX Fortran)
# Validate the list of find components.
-set(HDF5_LANGUAGE_BINDINGS)
if(NOT HDF5_FIND_COMPONENTS)
- get_property(__langs GLOBAL PROPERTY ENABLED_LANGUAGES)
- foreach(__lang IN LISTS __langs)
- if(__lang MATCHES "^(C|CXX|Fortran)$")
- list(APPEND HDF5_LANGUAGE_BINDINGS ${__lang})
- set(HDF5_FIND_REQUIRED_${__lang} True)
- endif()
- endforeach()
- set(FIND_HL ON)
- set(HDF5_FIND_REQUIRED_HL True)
+ set(HDF5_LANGUAGE_BINDINGS "C")
else()
+ set(HDF5_LANGUAGE_BINDINGS)
# add the extra specified components, ensuring that they are valid.
set(FIND_HL OFF)
foreach(component IN LISTS HDF5_FIND_COMPONENTS)