From a3ed6bdb2f413b359accf9db13cf4f3d6ec838b9 Mon Sep 17 00:00:00 2001 From: Alexander Klingenbeck Date: Wed, 2 Aug 2023 13:19:42 +0200 Subject: [PATCH] Link to static winpthread --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56b4eea..0edb910 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.1) set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static") project(rayjs) message("=== Configure raylib ===")