Skip to content

Commit

Permalink
Merge pull request #11674 from rouault/fix_gtest_clang
Browse files Browse the repository at this point in the history
Fix compiler warning on fetched googletest on fedora:rawhide with latest clang
  • Loading branch information
rouault authored Jan 16, 2025
2 parents b68bf74 + 4b02b50 commit 92ed5d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autotest/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ else()

add_library(gtest_for_gdal ALIAS gtest)

# Force CXX_STANDARD=14 otherwise with clang 19.1.6, one gets
# In file included from /home/runner/work/gdal/gdal/build-fedora_rawhide/autotest/cpp/googletest-src/googletest/include/gtest/internal/gtest-port.h:295:
# /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/ciso646:46:4: error: "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror,-W#warnings]
set_target_properties(gtest PROPERTIES CXX_STANDARD 14)

endif() # USE_EXTERNAL_GTEST


Expand Down

0 comments on commit 92ed5d5

Please sign in to comment.