Skip to content

Commit

Permalink
fix unbundled build with pyside6
Browse files Browse the repository at this point in the history
  • Loading branch information
chayleaf committed Nov 21, 2023
1 parent 653435c commit 9fd2c08
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,15 @@ if(CUTTER_ENABLE_PYTHON_BINDINGS)
endif()

foreach(_dir ${CUTTER_INCLUDE_DIRECTORIES})
list(APPEND SHIBOKEN_INCLUDE_DIRS
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${_dir}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/cutter/${_dir}>
)
list(APPEND SHIBOKEN_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/${_dir}")
list(APPEND SHIBOKEN_INCLUDE_DIRS "${CMAKE_INSTALL_INCLUDEDIR}/cutter/${_dir}")
endforeach()

if(NOT CUTTER_USE_BUNDLED_RIZIN)
get_target_property(RAW_RIZIN_INCLUDE_DIRS ${RIZIN_TARGET} INTERFACE_INCLUDE_DIRECTORIES)
list(APPEND SHIBOKEN_INCLUDE_DIRS "${RAW_RIZIN_INCLUDE_DIRS}")
endif()

list(APPEND SHIBOKEN_INCLUDE_DIRS ${Rizin_INCLUDE_DIRS})
if (NOT WIN32)
string(REPLACE ";" ":" SHIBOKEN_INCLUDE_DIRS "${SHIBOKEN_INCLUDE_DIRS}")
Expand Down

0 comments on commit 9fd2c08

Please sign in to comment.