Skip to content

Commit

Permalink
check if Shiboken2Config.cmake defines a target instead of a variable,
Browse files Browse the repository at this point in the history
…fixes #69 (#77)
  • Loading branch information
no-preserve-root authored and dirk-thomas committed Oct 24, 2019
1 parent a64b492 commit fa91148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/shiboken_helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ macro(_shiboken_generator_command VAR GLOBAL TYPESYSTEM INCLUDE_PATH BUILD_DIR)
foreach(dir ${QT_INCLUDE_DIR})
set(QT_INCLUDE_DIR_WITH_COLONS "${QT_INCLUDE_DIR_WITH_COLONS}:${dir}")
endforeach()
if (NOT DEFINED SHIBOKEN_BINARY AND TARGET Shiboken2::shiboken2)
SET(SHIBOKEN_BINARY Shiboken2::shiboken2)
endif()
set(${VAR} ${SHIBOKEN_BINARY} --generatorSet=shiboken --include-paths=${INCLUDE_PATH}${QT_INCLUDE_DIR_WITH_COLONS} --typesystem-paths=${PYSIDE_TYPESYSTEMS} --output-directory=${BUILD_DIR} ${GLOBAL} ${TYPESYSTEM})
endmacro()

Expand Down

0 comments on commit fa91148

Please sign in to comment.