]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don’t add -I${CMAKE_SOURCE_DIR}/third_party when compiling
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 2 Oct 2020 07:29:51 +0000 (09:29 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Oct 2020 06:54:51 +0000 (08:54 +0200)
Third party headers are supposed to be included by “#include
third_party/...”.

src/third_party/CMakeLists.txt

index 7c62046a129e0e18f3ac1d73e09d2795f6b56f01..3ed7158c873b6941dbb3336da65014861f7faa54 100644 (file)
@@ -39,7 +39,7 @@ endif()
 # Treat third party headers as system files (no warning for those headers).
 target_include_directories(
   third_party_lib
-  PRIVATE ${CMAKE_BINARY_DIR} . SYSTEM INTERFACE .)
+  PRIVATE ${CMAKE_BINARY_DIR} . SYSTEM)
 
 target_link_libraries(third_party_lib PRIVATE standard_settings)
 target_link_libraries(third_party_lib INTERFACE blake3)