Skip to content

Commit

Permalink
[arccore,googletest] Supprime attribut 'SYSTEM' pour les répertoire d…
Browse files Browse the repository at this point in the history
…'en-tête.

Sans cela, il n'est pas garanti d'utiliser les bons fichiers d'en-tête si
une version de 'googletest' est installée ailleurs.
  • Loading branch information
grospelliergilles committed Jun 2, 2024
1 parent f4e21ba commit cc67d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arccore/extras/googletest/googletest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ set_target_properties(gtest PROPERTIES VERSION ${GOOGLETEST_VERSION})
cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}")
target_include_directories(gtest SYSTEM INTERFACE
target_include_directories(gtest INTERFACE
"$<BUILD_INTERFACE:${dirs}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
target_include_directories(gtest_main SYSTEM INTERFACE
target_include_directories(gtest_main INTERFACE
"$<BUILD_INTERFACE:${dirs}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
target_link_libraries(gtest_main PUBLIC gtest)

0 comments on commit cc67d33

Please sign in to comment.