From eb2bd73c7dcf1321f2fde2392cdfb8cffcaf7519 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sat, 15 Jun 2024 21:31:23 +0200 Subject: [PATCH] ensure teakra is always static linked even in dynamically linked builds --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 50cd770874..a5b7806c58 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -133,6 +133,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINAR target_sources(core PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/version.h") target_include_directories(core PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") +set(BUILD_SHARED_LIBS OFF) add_subdirectory(teakra EXCLUDE_FROM_ALL) # Workaround for building teakra with -O0 on Windows either failing or hanging forever target_compile_options(teakra PRIVATE "$<$:-Og>")