Skip to content

Commit

Permalink
Set new PortMIDI CMake variable for static CRT builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Oct 15, 2022
1 parent 2c1860e commit 63f8942
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion ports/portmidi/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ vcpkg_from_github(
HEAD_REF master
)

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
if(VCPKG_CRT_LINKAGE STREQUAL static)
SET(PM_USE_STATIC_RUNTIME ON)
else()
SET(PM_USE_STATIC_RUNTIME OFF)
endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPM_USE_STATIC_RUNTIME="${PM_USE_STATIC_RUNTIME}"
)
vcpkg_cmake_install()

vcpkg_fixup_pkgconfig()
Expand Down
2 changes: 1 addition & 1 deletion versions/p-/portmidi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "cef230927926bae09c39f67c62b1ad1380a99aed",
"git-tree": "80e9d16ce38c591b483a1d5b84eeb96a00a4d4ff",
"version": "2.0.4",
"port-version": 0
},
Expand Down

0 comments on commit 63f8942

Please sign in to comment.