Extra hint for finding TBB.

This commit is contained in:
Tadas Baltrusaitis
2018-06-27 21:10:13 +02:00
parent 694a6bec0d
commit b09159dc81

View File

@@ -44,7 +44,8 @@ MESSAGE(" Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
find_package( TBB CONFIG )
# If not found, use FindTBB.cmake
if (NOT ${TBB_FOUND} OR NOT ${TBB_LIBRARIES})
if (NOT ${TBB_FOUND} OR NOT ${TBB_LIBRARIES} OR "${TBB_LIBRARIES}" STREQUAL "" )
MESSAGE("TBB not found in CONFIG, searching with FindTBB.cmake.")
find_package( TBB REQUIRED )
else()
MESSAGE("TBB found in CONFIG: ${TBB_LIBRARIES}")