Commit c4527805 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Add DEBUG messages

parent 13c6b472
......@@ -83,6 +83,7 @@ if (LAPACK_FOUND)
# Look for the sequential MKL
# ---------------------------
message( DEBUG "FindLAPACKEXT: Search for sequential MKL")
set(BLA_VENDOR "Intel10_64lp_seq")
unset(LAPACK_FOUND)
unset(LAPACK_LINKER_FLAGS)
......@@ -92,6 +93,7 @@ if (LAPACK_FOUND)
# Look for the multi-threaded MKL
# -------------------------------
message( DEBUG "FindLAPACKEXT: Search for parallel MKL")
set(BLA_VENDOR "Intel10_64lp")
unset(LAPACK_FOUND)
unset(LAPACK_LINKER_FLAGS)
......@@ -101,6 +103,7 @@ if (LAPACK_FOUND)
# Restore the original library to make sure LAPACK_LIBRARIES is set
# -----------------------------------------------------------------
message( DEBUG "FindLAPACKEXT: Reset to default search")
set(BLA_VENDOR ${BLA_VENDOR_COPY})
unset(LAPACK_FOUND)
unset(LAPACK_LINKER_FLAGS)
......
......@@ -75,15 +75,20 @@ endmacro()
macro(morse_check_static_or_dynamic package libraries)
list(GET ${libraries} 0 _first_lib)
get_filename_component(_suffix ${_first_lib} EXT)
#message(STATUS "package ${package}")
#message(STATUS "libraries ${libraries} ${${libraries}}")
#message(STATUS "_suffix ${_suffix} ${_first_lib}")
message( DEBUG "[mcstod] package ${package}")
message( DEBUG "[mcstod] libraries ${libraries} ${${libraries}}")
message( DEBUG "[mcstod] _suffix ${_suffix} ${_first_lib}")
if (NOT _suffix)
unset (_lib_path CACHE)
find_library(_lib_path ${_first_lib} HINTS ${${package}_LIBDIR} ${${package}_LIBRARY_DIRS} NO_DEFAULT_PATH)
#message(STATUS "_first_lib ${_first_lib}")
#message(STATUS "${${package}_LIBRARY_DIRS}")
#message(STATUS "_lib_path ${_lib_path}")
message( DEBUG "[mcstod] Could not find suffix, try to find the library again" )
message( DEBUG "[mcstod] _first_lib ${_first_lib}" )
message( DEBUG "[mcstod] ${${package}_LIBRARY_DIRS}" )
message( DEBUG "[mcstod] _lib_path ${_lib_path}" )
get_filename_component(_suffix ${_lib_path} EXT)
endif()
if (_suffix)
......@@ -500,6 +505,9 @@ macro(morse_find_library _package )
endforeach()
list(REMOVE_DUPLICATES ${_package}_LIBRARY_DIRS)
mark_as_advanced(${_package}_LIBRARIES)
mark_as_advanced(${_package}_LIBRARY_DIRS)
# Restore suffixes
# ----------------
set (CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_COPY})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment