Skip to content

Commit fefde9f

Browse files
authored
Fix Windows installation issue (#11)
* cmake: Fix Windows installation issue * ci: Install nanoeigenpy * lint: run pre-commit
1 parent 73ee19d commit fefde9f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/macos-linux-windows-pixi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ jobs:
7070
run: |
7171
pixi run -e ${{ matrix.environment }} ctest --test-dir build --output-on-failure
7272
73+
- name: Install nanoeigenpy [MacOS/Linux/Windows]
74+
run: |
75+
pixi run -e ${{ matrix.environment }} cmake --build build --target install
76+
7377
check:
7478
if: always()
7579
name: check-macos-linux-windows-pixi

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ endif(APPLE)
101101
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES "eigen3 >= 3.3.1")
102102

103103
find_package(Python REQUIRED COMPONENTS Interpreter Development)
104+
# On Windows Python_SITELIB contains \ that can create installation issues
105+
if(WIN32)
106+
string(REPLACE "\\" "/" Python_SITELIB "${Python_SITELIB}")
107+
endif()
104108

105109
# Detect the installed nanobind package and import it into CMake
106110
execute_process(

0 commit comments

Comments
 (0)