diff --git a/cmake/modules/FindOpenVDB.cmake b/cmake/modules/FindOpenVDB.cmake index b56a7c3cc..48f0d6655 100644 --- a/cmake/modules/FindOpenVDB.cmake +++ b/cmake/modules/FindOpenVDB.cmake @@ -520,7 +520,7 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS}) if(NOT TARGET OpenVDB::${COMPONENT}) if (${COMPONENT} STREQUAL openvdb) include (${CMAKE_CURRENT_LIST_DIR}/CheckAtomic.cmake) - set(_LINK_LIBS _OPENVDB_VISIBLE_DEPENDENCIES ${CMAKE_REQUIRED_LIBRARIES}) + set(_LINK_LIBS ${_OPENVDB_VISIBLE_DEPENDENCIES} ${CMAKE_REQUIRED_LIBRARIES}) else () set(_LINK_LIBS _OPENVDB_VISIBLE_DEPENDENCIES) endif ()