Skip to content

Commit

Permalink
update to profiles and localization
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Feb 3, 2022
2 parents f9aea02 + bee8247 commit 40b4f92
Show file tree
Hide file tree
Showing 4 changed files with 9,462 additions and 6,301 deletions.
6 changes: 5 additions & 1 deletion cmake/modules/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ if(NOT TBB_FOUND)
##################################

if(TBB_INCLUDE_DIRS)
file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file)
if (EXISTS "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h")
file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file)
else()
file(READ "${TBB_INCLUDE_DIRS}/tbb/version.h" _tbb_version_file)
endif()
string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1"
TBB_VERSION_MAJOR "${_tbb_version_file}")
string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1"
Expand Down
Loading

0 comments on commit 40b4f92

Please sign in to comment.