Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 505b37e3 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

tweaking FindTBB CMake file

parent 37610ec6
......@@ -8,7 +8,7 @@
IF (WIN32)
MESSAGE(STATUS ${TbbDirectory})
IF(NOT TbbDirectory)
IF(NOT TBB_ROOT)
# check environment variables
IF(NOT "$ENV{TBB_INSTALL_DIR}" STREQUAL "")
SET(TbbDirectory $ENV{TBB_INSTALL_DIR})
......@@ -17,12 +17,18 @@ IF (WIN32)
# check default install directory
set(_TbbSeachPaths "C:/Program Files/Intel/TBB" "C:/Program Files (x86)/Intel/TBB" "${CampvisHome}/ext/tbb")
FIND_PATH(
TbbDirectory
TBB_ROOT
NAMES include/tbb/tbb.h
PATHS ${_TbbSeachPaths}
DOC "Intel TBB directory with includes, libs and dlls (i.e. where you extracted the binary distribution from threadingbuildingblocks.org.)"
)
IF(NOT TBB_ROOT)
MESSAGE(FATAL_ERROR "Could not find Intel TBB. Please set TBB_ROOT to the Intel TBB directory with includes, libs and dlls (i.e. where you extracted the binary distribution from threadingbuildingblocks.org.)")
ENDIF()
ENDIF()
SET(TbbDirectory ${TBB_ROOT})
IF(CAMPVIS_MSVC2010)
SET(TbbCompilerDirectory "vc10")
......@@ -79,9 +85,6 @@ ELSE (WIN32)
)
ENDIF (WIN32)
MESSAGE(STATUS ${TBB_INCLUDE_DIR})
MESSAGE(STATUS ${TBB_LIBRARY})
IF(TBB_INCLUDE_DIR AND TBB_LIBRARY)
SET(TBB_FOUND TRUE)
ELSE(TBB_INCLUDE_DIR AND TBB_LIBRARY)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment