Skip to content

Commit

Permalink
Dynamic runtime build needs a handful of libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
aholzinger committed Mar 11, 2020
1 parent 7957bf1 commit d290f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vcpkg/ports/nmos-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if (DEFINED VCPKG_TARGET_IS_WINDOWS AND ${VCPKG_TARGET_IS_WINDOWS} STREQUAL "1")
set (NMOS_CPP_OPTIONS_DEBUG "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug")
set (NMOS_CPP_OPTIONS_RELEASE "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded")
else()
# not yet tested
if (${VCPKG_LIBRARY_LINKAGE} STREQUAL "dynamic")
set (PLATFORM_LIBS -DPLATFORM_LIBS="Winhttp.lib;httpapi.lib;bcrypt.lib;crypt32.lib")
set (NMOS_CPP_OPTIONS_DEBUG "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL")
set (NMOS_CPP_OPTIONS_RELEASE "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL")
endif()
Expand Down Expand Up @@ -54,6 +54,7 @@ vcpkg_configure_cmake(
${NMOS_CPP_BOOST_SYSTEM_USE_UTF8_OPTION}
${NMOS_CPP_INCLUDE_DIR_PREFIX_OPTION}
${NMOS_CPP_WEBSOCKETPP_INCLUDE_DIR_OPTION}
${PLATFORM_LIBS}
OPTIONS_DEBUG
${NMOS_CPP_OPTIONS_DEBUG}
OPTIONS_RELEASE
Expand Down

0 comments on commit d290f1f

Please sign in to comment.