Skip to content

Commit

Permalink
cmake: in Python build on Windows, use pybind11 to find gemmi location
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Dec 17, 2023
1 parent 7de3d18 commit 374bd27
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 @@ -53,6 +53,11 @@ else()
endif()

if (DEFINED SKBUILD)
if (WIN32)
# Gemmi is installed in an overlay directory in virtualenv.
# For now, locate it relatively to pybind11.
get_filename_component(gemmi_ROOT "${pybind11_INCLUDE_DIR}/../../../.." ABSOLUTE)
endif()
find_package(gemmi 0.6.4 CONFIG REQUIRED)
else()
set(USE_PYTHON ON CACHE BOOL "" FORCE)
Expand Down

0 comments on commit 374bd27

Please sign in to comment.