Skip to content

Commit

Permalink
Merge pull request LLNL#100 from LLNL/feature/settgast/tplAsSystemInc…
Browse files Browse the repository at this point in the history
…lude

added TREAT_INCLUDES_AS_SYSTEM ON for called to blt_register_library calls in thirdparty_builtin
  • Loading branch information
rrsettgast authored Oct 12, 2017
2 parents 31ffe7a + cffcac3 commit 0cd4588
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions thirdparty_builtin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,17 @@ if(ENABLE_TESTS)
INCLUDES ${gtest_SOURCE_DIR}/include
LIBRARIES gtest_main gtest ${gtest_extra_libs}
COMPILE_FLAGS ${gtest_extra_flags}
DEFINES ${gtest_defines})
DEFINES ${gtest_defines}
TREAT_INCLUDES_AS_SYSTEM ON
)
if(ENABLE_GMOCK)
blt_register_library(NAME gmock
INCLUDES ${gmock_SOURCE_DIR}/include
LIBRARIES gmock_main gmock
COMPILE_FLAGS ${gtest_extra_flags}
DEFINES ${gtest_defines})
DEFINES ${gtest_defines}
TREAT_INCLUDES_AS_SYSTEM ON
)
endif()
endif()

Expand Down Expand Up @@ -147,6 +151,7 @@ if(ENABLE_TESTS)
blt_register_library(NAME gbenchmark
INCLUDES ${benchmark_SOURCE_DIR}/include ${benchmark_SOURCE_DIR}
LIBRARIES benchmark ${RT_LIBRARIES}
TREAT_INCLUDES_AS_SYSTEM ON
)

# This sets up a target to run the benchmarks
Expand Down

0 comments on commit 0cd4588

Please sign in to comment.