From 2d87886aa733ec54dc250951ddcb070e8be7863f Mon Sep 17 00:00:00 2001 From: Dominik Loidolt <dominik.loidolt@univie.ac.at> Date: Tue, 16 May 2023 11:29:39 +0200 Subject: [PATCH] Fix cross compiling the cmp_tool to windows in Ubuntu/Debian Many thanks to Jorge for the fix! --- mingw-w64-64.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw-w64-64.txt b/mingw-w64-64.txt index 773be92..0cb48e3 100644 --- a/mingw-w64-64.txt +++ b/mingw-w64-64.txt @@ -15,8 +15,11 @@ cpu_family = 'x86_64' cpu = 'x86_64' endian = 'little' -[cmake] +[built-in options] +# for clock_gettime function +c_link_args = ['-lwinpthread'] +[cmake] CMAKE_BUILD_WITH_INSTALL_RPATH = 'ON' CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = 'NEVER' CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = 'ONLY' -- GitLab