Started replacing hack using TLL_LIBS with CMAKE_REQUIRED_LIBRARIES

This commit is contained in:
Ward Fisher 2016-11-10 23:30:01 +00:00
parent 12d9891305
commit 7d1289fb64

View File

@ -80,8 +80,8 @@ IF(TLL_LIBS)
LIST(REMOVE_DUPLICATES TLL_LIBS)
ENDIF()
TARGET_LINK_LIBRARIES(netcdf ${TLL_LIBS})
#TARGET_LINK_LIBRARIES(netcdf ${TLL_LIBS})
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${TLL_LIBS})
IF(MSVC)
SET_TARGET_PROPERTIES(netcdf PROPERTIES
LINK_FLAGS_DEBUG " /NODEFAULTLIB:MSVCRT"