Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
explain in comment why we don't even test pthread on windows
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jan 2016 21:35:41 +0000 (22:35 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 23 Jan 2016 21:41:02 +0000 (22:41 +0100)
CMakeLists.txt

index 5e19c961af3ea76725231d1ca9152f1e6d7f6a7e..3747faf7a77658481069112260a1c5ee7bef141f 100644 (file)
@@ -282,7 +282,8 @@ endif()
 CHECK_LIBRARY_EXISTS(dl      dlopen                  "" HAVE_DLOPEN_IN_LIBDL)
 CHECK_LIBRARY_EXISTS(execinfo backtrace              "" HAVE_BACKTRACE_IN_LIBEXECINFO)
 CHECK_LIBRARY_EXISTS(rt      clock_gettime           "" HAVE_POSIX_GETTIME)
-if(NOT WIN32)
+
+if(NOT WIN32) # We don't want to have winpthread-1.dll in the jarfile
   CHECK_LIBRARY_EXISTS(pthread pthread_create          "" HAVE_PTHREAD)
   CHECK_LIBRARY_EXISTS(pthread sem_init                "" HAVE_SEM_INIT_LIB)
   CHECK_LIBRARY_EXISTS(pthread sem_open                "" HAVE_SEM_OPEN_LIB)