termux-packages/packages/poppler/force-termux-include-dirs.p...

14 lines
660 B
Diff
Raw Normal View History

2020-01-11 20:38:29 +01:00
diff -uNr poppler-0.84.0/CMakeLists.txt poppler-0.84.0.mod/CMakeLists.txt
--- poppler-0.84.0/CMakeLists.txt 2019-12-28 14:18:51.000000000 +0200
+++ poppler-0.84.0.mod/CMakeLists.txt 2020-01-11 21:36:13.130975793 +0200
@@ -315,6 +315,9 @@
set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS} ${CMAKE_CXX_FLAGS}")
endif()
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I@TERMUX_PREFIX@/include")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I@TERMUX_PREFIX@/include")
+
include(ConfigureChecks.cmake)
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(poppler/poppler-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/poppler/poppler-config.h)