From faac493a5dcbe913ccc950b92b9f8c1e8492b7ef Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 14 Sep 2022 07:38:15 -0400 Subject: Force project includes before system includes (fixes #763) From time to time, someone has a problem because their build is grabbing an old version of qpdf header files that are installed somewhere on their system. I am hoping this will put an end to that. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c4a023f..46fb4367 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,7 @@ if(NOT (BUILD_STATIC_LIBS OR BUILD_SHARED_LIBS)) FATAL_ERROR "At least one of static or shared libraries must be built") endif() +set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) add_compile_definitions($<$:POINTERHOLDER_TRANSITION=4>) if(ENABLE_QTC) -- cgit v1.2.3-54-g00ecf