Added debug output for dependency searches with -DDEBUG_OUTPUT=Y
This commit is contained in:
@ -64,6 +64,8 @@ macro(check_deps)
|
|||||||
if((DEFINED lib${lib}) AND (${lib${lib}} STREQUAL "lib${lib}-NOTFOUND"))
|
if((DEFINED lib${lib}) AND (${lib${lib}} STREQUAL "lib${lib}-NOTFOUND"))
|
||||||
set(DEPS_ERROR TRUE)
|
set(DEPS_ERROR TRUE)
|
||||||
set(FAILED_DEPS "${FAILED_DEPS} lib${lib}")
|
set(FAILED_DEPS "${FAILED_DEPS} lib${lib}")
|
||||||
|
elseif(DEBUG_OUTPUT)
|
||||||
|
message(STATUS "Library was found at: ${lib${lib}}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
@ -79,6 +81,8 @@ if(NOT ( DEFINED MYSQL_DIR ) )
|
|||||||
find_path(MYSQL_DIR mysql.h PATH_SUFFIXES mysql mariadb)
|
find_path(MYSQL_DIR mysql.h PATH_SUFFIXES mysql mariadb)
|
||||||
if(${MYSQL_DIR} STREQUAL "MYSQL_DIR-NOTFOUND")
|
if(${MYSQL_DIR} STREQUAL "MYSQL_DIR-NOTFOUND")
|
||||||
message(FATAL_ERROR "Fatal Error: MySQL headers were not found.")
|
message(FATAL_ERROR "Fatal Error: MySQL headers were not found.")
|
||||||
|
elseif(DEBUG_OUTPUT)
|
||||||
|
message(STATUS "Using MySQL headers found at: ${MYSQL_DIR}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -87,6 +91,8 @@ if( NOT ( DEFINED ERRMSG ) )
|
|||||||
find_file(ERRMSG errmsg.sys PATHS /usr/share/mysql /usr/local/share/mysql ${CUSTOM_ERRMSG} PATH_SUFFIXES english)
|
find_file(ERRMSG errmsg.sys PATHS /usr/share/mysql /usr/local/share/mysql ${CUSTOM_ERRMSG} PATH_SUFFIXES english)
|
||||||
if(${ERRMSG} STREQUAL "ERRMSG-NOTFOUND")
|
if(${ERRMSG} STREQUAL "ERRMSG-NOTFOUND")
|
||||||
message(FATAL_ERROR "Fatal Error: The errmsg.sys file was not found.")
|
message(FATAL_ERROR "Fatal Error: The errmsg.sys file was not found.")
|
||||||
|
elseif(DEBUG_OUTPUT)
|
||||||
|
message(STATUS "Using errmsg.sys found at: ${ERRMSG}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user