Include gorgon dirs to the target as system to avoid compilation issues 4.x-dev

Sat, 27 Nov 2021 15:02:03 +0100

author
cengizkandemir
date
Sat, 27 Nov 2021 15:02:03 +0100
branch
4.x-dev
changeset 1764
e47116c2f9a3
parent 1763
8f288778ac0e
child 1765
c2ad24013a68

Include gorgon dirs to the target as system to avoid compilation issues

Scripts/GorgonConfig.cmake.in file | annotate | diff | comparison | revisions
--- a/Scripts/GorgonConfig.cmake.in	Sat Nov 27 15:00:17 2021 +0100
+++ b/Scripts/GorgonConfig.cmake.in	Sat Nov 27 15:02:03 2021 +0100
@@ -114,7 +114,7 @@
 	compilersetup()
 	target_link_libraries(${target} Gorgon)
 	
-	include_directories(${GORGON_INCLUDE_DIRS})
+	target_include_directories(${target} SYSTEM PRIVATE ${GORGON_INCLUDE_DIRS})
 	
     if("@FREETYPE@" STREQUAL "SYSTEM" OR "@FREETYPE@" STREQUAL "BUILTIN")
         set(FREETYPE_INCLUDE_DIRS "@FREETYPE_INCLUDE_DIRS@")

mercurial