Skip to content

Commit

Permalink
Adding Mac triplet
Browse files Browse the repository at this point in the history
Python should be a dylib now
  • Loading branch information
colincornaby committed Mar 7, 2023
1 parent 3824c52 commit a6534a0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Scripts/Triplets/x64-osx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_DISABLE_COMPILER_TRACKING TRUE)

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)

# Unfortunately, we cannot include() anything from here because CMAKE_CURRENT_LIST_DIR is "wrong."
# If you update this list, remember to synchronize x86-windows-plasma.cmake.
set(_PLASMA_DYNAMIC_LIBRARIES
cairo
python2
python3
)

cmake_policy(SET CMP0057 NEW)
if(PORT IN_LIST _PLASMA_DYNAMIC_LIBRARIES)
set(VCPKG_LIBRARY_LINKAGE dynamic)
else()
set(VCPKG_LIBRARY_LINKAGE static)
endif()

# This is a terrible hack because meson seems to suck.
if(PORT STREQUAL cairo)
set(VCPKG_BUILD_TYPE release)
endif()

0 comments on commit a6534a0

Please sign in to comment.