Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ endif()

if(NOT EMSCRIPTEN AND NOT ONLY_BUILD_THIRD_PARTY_LIBRARIES)
# Enable unit testing.
# Note: we suppress all warnings from GoogleTest sources since they have nothing to do with our code.

if(LIBOPENCOR_UNIT_TESTING)
enable_testing()
Expand All @@ -567,6 +568,10 @@ if(NOT EMSCRIPTEN AND NOT ONLY_BUILD_THIRD_PARTY_LIBRARIES)

add_subdirectory(extern/googletest)

foreach(TARGET gtest gtest_main)
suppress_target_warnings(${TARGET})
endforeach()

mark_as_advanced(BUILD_GMOCK
GTEST_HAS_ABSL
INSTALL_GTEST)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.20260420.0
0.20260526.0
6 changes: 6 additions & 0 deletions cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function(replace_compiler_flag OLD NEW)
endforeach()
endfunction()

function(suppress_target_warnings TARGET)
target_compile_options(${TARGET} PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/W0>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-w>)
endfunction()

function(configure_target TARGET)
# Ignore some MSVC warnings.

Expand Down
Loading