Enable macOS builds to run from build directory....

This commit is contained in:
Marek Roszko 2023-11-13 20:13:49 -05:00
parent 0054b64143
commit 53a90ccb88
1 changed files with 5 additions and 0 deletions

View File

@ -664,6 +664,11 @@ else()
set( KICAD_DEMOS demos
CACHE PATH "Location of KiCad demo files." FORCE )
# Required to run from build folder
if( PYTHON_FRAMEWORK )
list(APPEND CMAKE_BUILD_RPATH ${PYTHON_FRAMEWORK} )
endif()
# RPATH settings for building shared libraries
set( CMAKE_MACOSX_RPATH FALSE )
endif()