From f6a958b85a327bd24df6ce86f50955147d52f805 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 31 Jul 2020 17:13:26 +0200 Subject: [PATCH] Link conan libs as shared libraries. --- CmakeConanSetup.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CmakeConanSetup.cmake b/CmakeConanSetup.cmake index df1900b..f3449d4 100644 --- a/CmakeConanSetup.cmake +++ b/CmakeConanSetup.cmake @@ -11,10 +11,10 @@ function(SetupConan) if (NOT WINDOWS) execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build outdated - -s compiler=clang -s compiler.libcxx=libstdc++11 -o *:staticC=${CONAN_STATIC_C} -o AngelScript:link_std_statically=True) + -s compiler=clang -s compiler.libcxx=libstdc++11 -o *:shared=True -o *:staticC=${CONAN_STATIC_C} -o AngelScript:link_std_statically=True) else () execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build outdated - -s compiler=gcc -s compiler.libcxx=libstdc++11 -s os=Windows -o *:staticC=${CONAN_STATIC_C} -o AngelScript:link_std_statically=True) + -s compiler=gcc -s compiler.libcxx=libstdc++11 -s os=Windows -o *:shared=True -o *:staticC=${CONAN_STATIC_C} -o AngelScript:link_std_statically=True) endif () endif () include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)