summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-01-11 20:17:21 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-01-11 20:17:21 (GMT)
commit7fb991e8edd9cef200f4769bbd22e7eff2b9e27f (patch)
tree30e2c4cf094281daacdf9a3896f01235642264c3 /config/cmake_ext_mod/ConfigureChecks.cmake
parent244faaa0d048e7e06fb5aec8d4f661f1893c3030 (diff)
downloadhdf5-7fb991e8edd9cef200f4769bbd22e7eff2b9e27f.zip
hdf5-7fb991e8edd9cef200f4769bbd22e7eff2b9e27f.tar.gz
hdf5-7fb991e8edd9cef200f4769bbd22e7eff2b9e27f.tar.bz2
CMake command cleanup
Diffstat (limited to 'config/cmake_ext_mod/ConfigureChecks.cmake')
-rw-r--r--config/cmake_ext_mod/ConfigureChecks.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/cmake_ext_mod/ConfigureChecks.cmake b/config/cmake_ext_mod/ConfigureChecks.cmake
index f30dd96..1872cd5 100644
--- a/config/cmake_ext_mod/ConfigureChecks.cmake
+++ b/config/cmake_ext_mod/ConfigureChecks.cmake
@@ -11,9 +11,9 @@ include (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
include (${CMAKE_ROOT}/Modules/CheckVariableExists.cmake)
include (${CMAKE_ROOT}/Modules/CheckFortranFunctionExists.cmake)
include (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
-if(CMAKE_CXX_COMPILER_LOADED)
+if (CMAKE_CXX_COMPILER AND CMAKE_CXX_COMPILER_LOADED)
include (${CMAKE_ROOT}/Modules/TestForSTDNamespace.cmake)
-endif()
+endif ()
#-----------------------------------------------------------------------------
# APPLE/Darwin setup
@@ -307,7 +307,7 @@ if (NOT WINDOWS)
"Test TEST_LFS_WORKS Run failed with the following output and exit code:\n ${OUTPUT}\n"
)
endif ()
- else ( )
+ else ()
set (TEST_LFS_WORKS "" CACHE INTERNAL ${msg})
message (STATUS "${msg}... no")
file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log