Fix windows exe generation #2

Merged
cosmonaut merged 3 commits from cli_fix into main 2023-10-06 22:10:56 +00:00
2 changed files with 7 additions and 6 deletions

View File

@ -17,7 +17,7 @@ steps:
commands:
- cmake -E make_directory ./windows-build
- cd ./windows-build
- mingw64-cmake -S .. -B .
- mingw64-cmake -DBUILD_SHARED_LIBS=OFF -S .. -B .
- make
- name: gitea_release

View File

@ -56,6 +56,12 @@ if(BUILD_SHARED_LIBS)
set(LINKSTYLE PUBLIC)
endif()
if(BUILD_SHARED_LIBS)
add_library(Cram SHARED ${SOURCE_FILES})
else()
add_library(Cram STATIC ${SOURCE_FILES})
endif()
if(BUILD_CLI)
file(GLOB CLI_SOURCES
tools/cli/lib/stb_image_write.h
@ -80,11 +86,6 @@ if(BUILD_CLI)
endif()
endif()
if(BUILD_SHARED_LIBS)
add_library(Cram SHARED ${SOURCE_FILES})
else()
add_library(Cram STATIC ${SOURCE_FILES})
endif()
# Build flags
if(NOT MSVC)