cmake: mark readline include directories as SYSTEM (thanks, Tobias!).
authorRyan C. Gordon <icculus@icculus.org>
Mon, 25 Sep 2017 17:07:08 -0400
changeset 1606 4b3c2995ce0f
parent 1605 5c5f95f1d5ff
child 1607 a7ca06db3a57
cmake: mark readline include directories as SYSTEM (thanks, Tobias!).
CMakeLists.txt
--- a/CMakeLists.txt	Mon Sep 25 16:32:52 2017 -0400
+++ b/CMakeLists.txt	Mon Sep 25 17:07:08 2017 -0400
@@ -204,7 +204,7 @@
         if(READLINE_LIBRARY)
             set(HAVE_SYSTEM_READLINE TRUE)
             set(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} ${READLINE_LIBRARY} ${CURSES_LIBRARY})
-            include_directories(${READLINE_H} ${HISTORY_H})
+            include_directories(SYSTEM ${READLINE_H} ${HISTORY_H})
             add_definitions(-DPHYSFS_HAVE_READLINE=1)
         endif()
     endif()