Skip to content

Commit

Permalink
tra only static build for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Feb 13, 2025
1 parent 58ac180 commit 456dff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ cmake_minimum_required(VERSION 3.25)
set(PLATFORM "win" CACHE STRING "Platform")
set(ARCH "x64" CACHE STRING "Arch")

option(BUILD_SHARED "Option to build shared library" ON)
if(PLATFORM STREQUAL "win")
option(BUILD_STATIC "Option to build static library" OFF)
option(BUILD_SHARED "Option to build shared library" OFF)
option(BUILD_STATIC "Option to build static library" ON)
else()
option(BUILD_SHARED "Option to build shared library" ON)
option(BUILD_STATIC "Option to build static library" ON)
endif()

Expand Down

0 comments on commit 456dff5

Please sign in to comment.