tng_set_source_properties is not defined in case of GMX_EXTERNAL_TNG=ON
due to the fact that BuildTNG.cmake never gets included. Also this
call isn't really needed tng doesn't get compile when external anyway.
Change-Id: Id3c7e0da55ce9ef8cf43d2aecaa187e965bf6ad2
if(GMX_USE_TNG)
list(APPEND LIBGROMACS_SOURCES ${TNG_SOURCES})
- tng_set_source_properties(WITH_ZLIB ${HAVE_ZLIB})
+ if (NOT GMX_EXTERNAL_TNG)
+ tng_set_source_properties(WITH_ZLIB ${HAVE_ZLIB})
+ endif()
endif()
get_lmfit_properties(LMFIT_SOURCES LMFIT_LIBRARIES_TO_LINK LMFIT_INCLUDE_DIRECTORY LMFIT_INCLUDE_DIR_ORDER)