File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ CMakeSettings.json
1616.idea /
1717vcpkg-master.zip
1818vcpkg-master /
19+ include /config.h
Original file line number Diff line number Diff line change @@ -115,7 +115,18 @@ set(MINIO_CPP_HEADERS
115115 include /miniocpp/utils.h
116116)
117117
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+
119130target_compile_options (miniocpp PRIVATE ${MINIO_CPP_CFLAGS} )
120131target_compile_features (miniocpp PUBLIC cxx_std_${MINIO_CPP_STD} )
121132target_include_directories (miniocpp PUBLIC
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ set -x
34BUILD_OPTIONS=" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
45
56if [ -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"
78fi
89
910echo " == [Configuring Build - Debug] =="
You can’t perform that action at this time.
0 commit comments