Fix MacOs build

Avoid use empty path for custom dir
This commit is contained in:
Renato Araujo Oliveira Filho
2023-05-02 15:15:25 -03:00
committed by Sergio Martins
parent c603593552
commit c3751142c0
2 changed files with 9 additions and 1 deletions

View File

@@ -98,6 +98,10 @@ else()
#PySide
#===============================================================================
if(PYSIDE_CUSTOM_PREFIX STREQUAL "")
set(PYSIDE_CUSTOM_PREFIX ${PYSIDE2_BASEDIR})
endif()
find_path(
PYSIDE_INCLUDE_DIR pyside.h
PATHS ${PYSIDE2_BASEDIR}/include ${PYSIDE_CUSTOM_PREFIX}/include/PySide2