Skip to content

Commit

Permalink
Merge pull request #239 from zhujun98/improve_cpp_code_quality
Browse files Browse the repository at this point in the history
Improve c++ code quality (suppress compiler warnings)
  • Loading branch information
zhujun98 authored Jun 24, 2020
2 parents 4af4aa2 + 46844bb commit f453822
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 317 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ if(FOAM_USE_TBB OR XTENSOR_USE_TBB)
set(TBB_REQUIRED_VERSION 2020.1)
string(REPLACE "." "_U" TBB_REQUIRED_VERSION_STR ${TBB_REQUIRED_VERSION})

add_compile_definitions(TBB_SUPPRESS_DEPRECATED_MESSAGES)

find_package(TBB QUIET)
if(TBB_FOUND AND ${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} VERSION_EQUAL TBB_REQUIRED_VERSION)
set(TBB_LIBRARY ${TBB_LIBRARIES_RELEASE})
Expand Down
Loading

0 comments on commit f453822

Please sign in to comment.