Skip to content

Commit

Permalink
Merge pull request #387 from imaginationtech/python_build_fix
Browse files Browse the repository at this point in the history
Fix the build of the Python bindings.
  • Loading branch information
axsaucedo authored Aug 22, 2024
2 parents fdf4098 + 4bdfdb4 commit 4712657
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ include(cmake/vulkan_shader_compiler.cmake)
include(cmake/check_vulkan_version.cmake)
include(FetchContent)

# Set -fPIC so that ../lib/kp.cpython-310-x86_64-linux-gnu.so links correctly
if(KOMPUTE_OPT_BUILD_PYTHON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

# Vulkan Header
# We don't import Vulkan library if Android build as it is built dynamically
# Otherwise it is expected that the Vulkan SDK and dependencies are installed
Expand Down

0 comments on commit 4712657

Please sign in to comment.