MinGW is not respecting the BUILD_SHARED_LIBS default value. Cool! Reviewed-on: #2main
parent
fe1f334223
commit
8c32994d4f
|
@ -17,7 +17,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cmake -E make_directory ./windows-build
|
- cmake -E make_directory ./windows-build
|
||||||
- cd ./windows-build
|
- cd ./windows-build
|
||||||
- mingw64-cmake -S .. -B .
|
- mingw64-cmake -DBUILD_SHARED_LIBS=OFF -S .. -B .
|
||||||
- make
|
- make
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
|
|
|
@ -56,6 +56,12 @@ if(BUILD_SHARED_LIBS)
|
||||||
set(LINKSTYLE PUBLIC)
|
set(LINKSTYLE PUBLIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BUILD_SHARED_LIBS)
|
||||||
|
add_library(Cram SHARED ${SOURCE_FILES})
|
||||||
|
else()
|
||||||
|
add_library(Cram STATIC ${SOURCE_FILES})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_CLI)
|
if(BUILD_CLI)
|
||||||
file(GLOB CLI_SOURCES
|
file(GLOB CLI_SOURCES
|
||||||
tools/cli/lib/stb_image_write.h
|
tools/cli/lib/stb_image_write.h
|
||||||
|
@ -80,11 +86,6 @@ if(BUILD_CLI)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_SHARED_LIBS)
|
|
||||||
add_library(Cram SHARED ${SOURCE_FILES})
|
|
||||||
else()
|
|
||||||
add_library(Cram STATIC ${SOURCE_FILES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Build flags
|
# Build flags
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
|
Loading…
Reference in New Issue