File tree 3 files changed +15
-2
lines changed 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ CMakeSettings.json
16
16
.idea /
17
17
vcpkg-master.zip
18
18
vcpkg-master /
19
+ include /config.h
Original file line number Diff line number Diff line change @@ -115,7 +115,18 @@ set(MINIO_CPP_HEADERS
115
115
include /miniocpp/utils.h
116
116
)
117
117
118
- add_library (miniocpp STATIC ${MINIO_CPP_SOURCES} ${MINIO_CPP_HEADERS} )
118
+ option (BUILD_SHARED_LIBS "Build using shared libraries" OFF )
119
+
120
+ IF (BUILD_SHARED_LIBS )
121
+ IF (WIN32 )
122
+ message (FATAL_ERROR "Unable to build shared library on Windows yet, this library lacks decorator support." )
123
+ ELSE ()
124
+ add_library (miniocpp SHARED ${MINIO_CPP_SOURCES} ${MINIO_CPP_HEADERS} )
125
+ ENDIF ()
126
+ ELSE ()
127
+ add_library (miniocpp STATIC ${MINIO_CPP_SOURCES} ${MINIO_CPP_HEADERS} )
128
+ ENDIF ()
129
+
119
130
target_compile_options (miniocpp PRIVATE ${MINIO_CPP_CFLAGS} )
120
131
target_compile_features (miniocpp PUBLIC cxx_std_${MINIO_CPP_STD} )
121
132
target_include_directories (miniocpp PUBLIC
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ set -x
3
4
BUILD_OPTIONS=" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
4
5
5
6
if [ -n " $VCPKG_ROOT " ]; then
6
- BUILD_OPTIONS=" ${BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake"
7
+ BUILD_OPTIONS=" ${BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake"
7
8
fi
8
9
9
10
echo " == [Configuring Build - Debug] =="
You can’t perform that action at this time.
0 commit comments