package/poppler: use THREAD_PTHREAD_ARG=OFF
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 8 Jun 2019 23:44:24 +0000 (01:44 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 8 Jun 2019 23:44:24 +0000 (01:44 +0200)
As noted by Fabrice, all other packages that show CMake's FindThreads
issue fix it by setting THREAD_PTHREAD_ARG=OFF instead of setting
THREAD_HAVE_PTHREAD_ARG=ON. So, for consistency, do the same for
poppler.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/poppler/poppler.mk

index ebb918de030041e2bcc6cca15091d468804ad328..ffa65f68cefad6a1841c4948e6129901f6a3a09f 100644 (file)
@@ -21,7 +21,7 @@ POPPLER_CONF_OPTS = \
        -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
+POPPLER_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
 
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"