#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
endif()
if(NOT _library_was_found AND HAVE_LIBMKL)
- set(CMAKE_REQUIRED_LIBRARIES ${FFT_LINKER_FLAGS} ${FFT_LIBRARIES})
+ set(CMAKE_REQUIRED_LIBRARIES "${FFT_LIBRARIES}")
+ set(CMAKE_REQUIRED_FLAGS "${FFT_LINKER_FLAGS}")
# This may also not work correctly if the user changes
# MKL_LIBRARIES after the first run. However,
# MKL_LIBRARIES is only needed for icc version < 11, or
endif()
if (NOT _library_was_found AND NOT _find_quietly)
- message("${_message_text}A ${name} library was not found by CMake in the paths available to it. Falling back on the GROMACS internal version of the ${name} library instead. This is fine for normal usage.")
+ message(STATUS "${_message_text}Using GROMACS built-in ${name}.")
endif()
endif()
if(GMX_EXTERNAL_${name})
if (NOT _library_was_found)
message(FATAL_ERROR "You have set GMX_EXTERNAL_${name}=ON to instruct GROMACS to use an external ${name} library, but no external library could be detected.")
- endif ()
+ endif()
# Actually trigger linking.
list(APPEND LINEAR_ALGEBRA_LIBRARIES ${_libraries_to_link})
else()