Skip to content

Commit 219ce72

Browse files
committed
build: fix an issue with GNU > 9 in TBB cmake
1 parent 59d97a9 commit 219ce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/lnx/TBBConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endif()
6565
# For non-GCC compilers try to find version of system GCC to choose right compiler subdirectory.
6666
if (NOT _tbb_compiler_id STREQUAL "GNU")
6767
execute_process(COMMAND gcc --version OUTPUT_VARIABLE _tbb_gcc_ver_output ERROR_QUIET)
68-
string(REGEX REPLACE ".*gcc.*([0-9]+\\.[0-9]+)\\.[0-9]+.*" "\\1" _tbb_compiler_ver "${_tbb_gcc_ver_output}")
68+
string(REGEX REPLACE ".*gcc.* ([0-9]+\\.[0-9]+)\\.[0-9]+.*" "\\1" _tbb_compiler_ver "${_tbb_gcc_ver_output}")
6969
if (NOT _tbb_compiler_ver)
7070
message(FATAL_ERROR "This Intel TBB package is intended to be used only environment with available 'gcc'")
7171
endif()

0 commit comments

Comments
 (0)