Improve error-message if med.h is not found in CMake, and write all
commands in upper case, following the common syntax
This commit is contained in:
committed by
Yorik van Havre
parent
dccf48d3f4
commit
0f03f1e2bb
@@ -41,10 +41,10 @@ IF(MEDFILE_ROOT_DIR)
|
||||
ENDIF(MEDFILE_ROOT_DIR)
|
||||
|
||||
FIND_PATH(MEDFILE_INCLUDE_DIRS med.h PATH_SUFFIXES med)
|
||||
find_file(meddotH med.h PATHS ${MEDFILE_INCLUDE_DIRS} NO_DEFAULT_PATH)
|
||||
if(NOT meddotH)
|
||||
message( FATAL_ERROR "med.h not found in an error message above.")
|
||||
endif()
|
||||
FIND_FILE(meddotH med.h PATHS ${MEDFILE_INCLUDE_DIRS} NO_DEFAULT_PATH)
|
||||
IF(NOT meddotH)
|
||||
MESSAGE(FATAL_ERROR "med.h not found, please install development header-files for libmedc")
|
||||
ENDIF(NOT meddotH)
|
||||
#FIND_PROGRAM(MDUMP mdump)
|
||||
FIND_LIBRARY(MEDFILE_C_LIBRARIES NAMES medC)
|
||||
FIND_LIBRARY(MEDFILE_F_LIBRARIES NAMES med)
|
||||
|
||||
Reference in New Issue
Block a user