Skip to content

Commit

Permalink
supress warnings when compiling gtest
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Pearson <[email protected]>
  • Loading branch information
cwpearson committed Jan 29, 2025
1 parent 1d5d090 commit f2c7132
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ if(NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(gtest PRIVATE -w)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(gtest PRIVATE /w)
endif()

if(KOKKOSCOMM_ENABLE_MPI)
# Standalone MPI smoke tests (do not use KokkosComm)
Expand Down

0 comments on commit f2c7132

Please sign in to comment.