aboutsummaryrefslogtreecommitdiff
path: root/scripts/toolchains
diff options
context:
space:
mode:
authorLRFLEW <LRFLEW@aol.com>2018-10-23 17:49:48 -0600
committerRobert Schumacher <roschuma@microsoft.com>2018-10-23 16:49:48 -0700
commit16e7f4187bd2864705b11e24b29896a2987deaeb (patch)
tree1cb87ac6d8b23ec7451319bb170a5a7ff10cc351 /scripts/toolchains
parentc99f891b305ae0c3a0c72ad127480ac5851cfbd7 (diff)
downloadvcpkg-16e7f4187bd2864705b11e24b29896a2987deaeb.tar.gz
vcpkg-16e7f4187bd2864705b11e24b29896a2987deaeb.zip
Create macOS configuration variables for triplets (#4477)
* Create macOS configuration variables for triplets * Add new macOS configuration variables to documentation * [vcpkg-configure-cmake] Fix typo
Diffstat (limited to 'scripts/toolchains')
-rw-r--r--scripts/toolchains/osx.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/toolchains/osx.cmake b/scripts/toolchains/osx.cmake
index 9c4fdb12e..296d74ebe 100644
--- a/scripts/toolchains/osx.cmake
+++ b/scripts/toolchains/osx.cmake
@@ -9,6 +9,8 @@ else()
endif()
set(CMAKE_SYSTEM_NAME Darwin CACHE STRING "")
+set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
+
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
if(NOT _CMAKE_IN_TRY_COMPILE)
set(CMAKE_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fPIC" CACHE STRING "")