summaryrefslogtreecommitdiffstats
path: root/src/winpthreads-test.cmake
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-10-27 02:58:22 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-10-31 09:18:21 (GMT)
commit05380b49b7337df2eb11f834a8a9b01b0ab1cbe7 (patch)
tree59b582107829d310691a210af3dfce3280235da1 /src/winpthreads-test.cmake
parent0ad42f9aa49c118b34fdd324a471df38d389e6c3 (diff)
downloadmxe-05380b49b7337df2eb11f834a8a9b01b0ab1cbe7.zip
mxe-05380b49b7337df2eb11f834a8a9b01b0ab1cbe7.tar.gz
mxe-05380b49b7337df2eb11f834a8a9b01b0ab1cbe7.tar.bz2
gcc pthreads: build pthreads and mingw-w64 headers inline and enable libgomp
* fixes "~winpthreads changes ~pthread_signal.h" etc. reported by build-pkg mingw-w64 installs dummy headers if winpthreads isn't built * enables libgomp to avoid double-build (see #331) * no change in openmp-validation (still 20 failures - taken with a grain of salt as the batch file test runner isn't a reliable perl substitute) * pthreads virtual package kept for future testing
Diffstat (limited to 'src/winpthreads-test.cmake')
-rw-r--r--src/winpthreads-test.cmake18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/winpthreads-test.cmake b/src/winpthreads-test.cmake
deleted file mode 100644
index f818d90..0000000
--- a/src/winpthreads-test.cmake
+++ /dev/null
@@ -1,18 +0,0 @@
-# This file is part of MXE.
-# See index.html for further information.
-
-# partial module - included by src/cmake/CMakeLists.txt
-
-set(TGT test-${PKG}-cmake)
-
-enable_language(C)
-add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/pthreads-test.c)
-
-find_package(Threads REQUIRED)
-if(Threads::Threads) # cmake 3.1.0+
- target_link_libraries(${TGT} Threads::Threads)
-else()
- target_link_libraries(${TGT} ${CMAKE_THREAD_LIBS_INIT})
-endif()
-
-install(TARGETS ${TGT} DESTINATION bin)