Skip to content

Commit

Permalink
Fix compiler warning on fetched googletest on fedora:rawhide with lat…
Browse files Browse the repository at this point in the history
…est clang
  • Loading branch information
rouault authored and github-actions[bot] committed Jan 16, 2025
1 parent 438e1bf commit c45d11b
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 c45d11b

Please sign in to comment.