Change output message and use list(APPEND)

This commit is contained in:
Richard Berger
2020-06-09 12:10:35 -04:00
parent 954f728225
commit e47d48eed8

View File

@ -34,8 +34,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Modules)
# make sure LIBRARY_PATH is set if environment variable is set # make sure LIBRARY_PATH is set if environment variable is set
if (DEFINED ENV{LIBRARY_PATH}) if (DEFINED ENV{LIBRARY_PATH})
set(CMAKE_LIBRARY_PATH "$ENV{LIBRARY_PATH};${CMAKE_LIBRARY_PATH}") list(APPEND CMAKE_LIBRARY_PATH "$ENV{LIBRARY_PATH}")
message(STATUS "Setting CMAKE_LIBRARY_PATH to ${CMAKE_LIBRARY_PATH}") message(STATUS "Appending $ENV{LIBRARY_PATH} to CMAKE_LIBRARY_PATH: ${CMAKE_LIBRARY_PATH}")
endif() endif()
include(LAMMPSUtils) include(LAMMPSUtils)