Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Boris Basic
VTK
Commits
b20caa1f
Commit
b20caa1f
authored
Mar 24, 2016
by
Ben Boeckel
Browse files
FindTBB: remove variable deref in if() commands
parent
7e3e5f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/FindTBB.cmake
View file @
b20caa1f
...
...
@@ -193,22 +193,22 @@ endif ()
# For OS X binary distribution, choose libc++ based libraries for Mavericks (10.9)
# and above and AppleClang
if
(
${
CMAKE_SYSTEM_NAME
}
STREQUAL
"Darwin"
AND
NOT
${
CMAKE_SYSTEM_VERSION
}
LESS 13.0
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Darwin"
AND
NOT CMAKE_SYSTEM_VERSION
VERSION_
LESS 13.0
)
set
(
USE_LIBCXX OFF
)
cmake_policy
(
GET CMP0025 POLICY_VAR
)
if
(
"
${
POLICY_VAR
}
"
STREQUAL
"NEW"
)
if
(
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL
"AppleClang"
)
if
(
POLICY_VAR STREQUAL
"NEW"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"AppleClang"
)
set
(
USE_LIBCXX ON
)
endif
()
else
()
if
(
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL
"Clang"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
set
(
USE_LIBCXX ON
)
endif
()
endif
()
if
(
${
USE_LIBCXX
}
)
if
(
USE_LIBCXX
)
foreach
(
dir IN LISTS TBB_PREFIX_PATH
)
list
(
APPEND TBB_LIB_SEARCH_PATH
${
dir
}
/lib/libc++
${
dir
}
/libc++/lib
)
endforeach
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment