diff --git a/.github/workflows/conan-publish.yml b/.github/workflows/conan-publish.yml index 352f3c730..1800e4cd5 100644 --- a/.github/workflows/conan-publish.yml +++ b/.github/workflows/conan-publish.yml @@ -64,7 +64,7 @@ jobs: conan lock add --requires=viam-cpp-sdk/${{ inputs.ref }} - conan create . --build=missing -s:a compiler.cppstd=17 -o:a "&:shared=False" \ + conan create . --build=missing -s:a compiler.cppstd=17 \ --lockfile etc/conan/conan.lock $LOCKFILE_UPDATE_ARGS conan upload "viam-cpp-sdk/*" -r viamconan -c @@ -167,7 +167,7 @@ jobs: conan lock add --requires=viam-cpp-sdk/${{ inputs.ref }} - conan create . --build=missing -s:a compiler.cppstd=17 -o:a "&:shared=False" \ + conan create . --build=missing -s:a compiler.cppstd=17 \ --lockfile etc/conan/conan.lock $LOCKFILE_UPDATE_ARGS conan upload "viam-cpp-sdk/*" -r viamconan -c @@ -238,7 +238,7 @@ jobs: Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 refreshenv - conan create . --build=missing -o "&:shared=False" -s:a compiler.cppstd=17 + conan create . --build=missing -s:a compiler.cppstd=17 conan upload "viam-cpp-sdk/*" -r viamconan -c env: CONAN_USER_HOME: c:/cache diff --git a/.github/workflows/conan.yml b/.github/workflows/conan.yml index d6f30efa1..ac8448439 100644 --- a/.github/workflows/conan.yml +++ b/.github/workflows/conan.yml @@ -244,7 +244,7 @@ jobs: Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 refreshenv conan profile detect - conan create . --build=missing -o "&:shared=False" + conan create . --build=missing env: CONAN_USER_HOME: c:/cache CONAN_USER_HOME_SHORT: c:/cache/conan_shortpaths diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce027a817..d0ec5783a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 refreshenv conan profile detect - conan install . --output-folder=build-conan --build=missing -o "&:shared=False" + conan install . --output-folder=build-conan --build=missing cmake . --preset conan-default cmake --build --preset=conan-release --target ALL_BUILD install -j 8 env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ed58ab62..6ac90ad81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,7 +130,7 @@ jobs: Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 refreshenv conan profile detect - conan install . --build=missing -o "&:shared=False" + conan install . --build=missing cmake . --preset conan-default -DVIAMCPPSDK_BUILD_EXAMPLES=ON cmake --build --preset=conan-release --target ALL_BUILD install -j 8 env: diff --git a/conanfile.py b/conanfile.py index 29680aa13..4fe56399c 100644 --- a/conanfile.py +++ b/conanfile.py @@ -23,7 +23,7 @@ class ViamCppSdkRecipe(ConanFile): default_options = { "offline_proto_generation": True, - "shared": True + "shared": False } exports_sources = "CMakeLists.txt", "LICENSE", "src/*", "buf.lock"