#
MACRO(DEAL_II_FIND_FILE _file_name)
+ # Save a string representation of the arguments before cmake's
+ # FIND_FILE gets its hands on it.
+ TO_STRING(_str ${ARGN})
+
FIND_FILE(${_file_name} ${ARGN})
IF(${_file_name} MATCHES "-NOTFOUND")
- MESSAGE(STATUS "${_file_name} not found! Call:")
- TO_STRING(_str ${ARGN})
+ MESSAGE(STATUS "${_file_name} not found! The call was:")
MESSAGE(STATUS " FIND_FILE(${_file_name} ${_str})")
ELSE()
MESSAGE(STATUS "Found ${_file_name}")
#
MACRO(DEAL_II_FIND_LIBRARY _library_name)
+ # Save a string representation of the arguments before cmake's
+ # FIND_FILE gets its hands on it.
+ TO_STRING(_str ${ARGN})
+
FIND_LIBRARY(${_library_name} ${ARGN})
IF(${_library_name} MATCHES "-NOTFOUND")
- MESSAGE(STATUS "${_library_name} not found! Call:")
- TO_STRING(_str ${ARGN})
+ MESSAGE(STATUS "${_library_name} not found! The call was:")
MESSAGE(STATUS " FIND_LIBRARY(${_library_name} ${_str})")
ELSE()
MESSAGE(STATUS "Found ${_library_name}")
#
MACRO(DEAL_II_FIND_PATH _path_name)
+ # Save a string representation of the arguments before cmake's
+ # FIND_PATH gets its hands on it.
+ TO_STRING(_str ${ARGN})
+
FIND_PATH(${_path_name} ${ARGN})
IF(${_path_name} MATCHES "-NOTFOUND")
- MESSAGE(STATUS "${_path_name} not found! Call:")
- TO_STRING(_str ${ARGN})
+ MESSAGE(STATUS "${_path_name} not found! The call was:")
MESSAGE(STATUS " FIND_PATH(${_path_name} ${_str})")
ELSE()
MESSAGE(STATUS "Found ${_path_name}")
#
MACRO(DEAL_II_FIND_PROGRAM _file_name)
+ # Save a string representation of the arguments before cmake's
+ # FIND_PROGRAM gets its hands on it.
+ TO_STRING(_str ${ARGN})
+
FIND_PROGRAM(${_file_name} ${ARGN})
IF(${_file_name} MATCHES "-NOTFOUND")
- MESSAGE(STATUS "${_file_name} not found! Call:")
- TO_STRING(_str ${ARGN})
+ MESSAGE(STATUS "${_file_name} not found! The call was:")
MESSAGE(STATUS " FIND_PROGRAM(${_file_name} ${_str})")
ELSE()
MESSAGE(STATUS "Found ${_file_name}")