package/poppler: fix build with cmake < 3.10
poppler requires threads, and our compiler always accepts the -pthread argument, so THREADS_HAVE_PTHREAD_ARG can safely be set to ON. Fixes: - http://autobuild.buildroot.org/results/f9e24d38d3aa4519615c5a0ae7f62af610df976f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Arnout: set THREADS_HAVE_PTHREAD_ARG instead of THREADS_PTHREAD_ARG, and set it to ON instead of OFF because we always have threads.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
b91a6cc49a
commit
fa25bf1d69
@ -20,6 +20,9 @@ POPPLER_CONF_OPTS = \
|
||||
-DENABLE_GOBJECT_INTROSPECTION=OFF \
|
||||
-DENABLE_GTK_DOC=OFF
|
||||
|
||||
# cmake older than 3.10 requires this to avoid try_run() in FindThreads
|
||||
POPPLER_CONF_OPTS += -DTHREADS_HAVE_PTHREAD_ARG=ON
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user