Skip to content

Commit

Permalink
Adding specific support for 2018 and 2019 windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scottenglert committed Apr 13, 2022
1 parent 8c55dd5 commit 5e32ebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
Expand-Archive -LiteralPath devkit.zip -DestinationPath $pwd
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION=${{matrix.maya}} -DMAYA_DEVKIT_ROOT="$pwd/devkitBase"
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION="${{matrix.maya}}" -DMAYA_DEVKIT_ROOT="$pwd/devkitBase"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand Down
2 changes: 2 additions & 0 deletions cmake/MayaConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if (WIN32)

if (${MAYA_VERSION} VERSION_GREATER_EQUAL "2022")
set(PYTHON_INCLUDE_DIR "${MAYA_DEVKIT_ROOT}/include/Python${PYTHON_VERSION_NO}/Python")
elseif(${MAYA_VERSION} VERSION_EQUAL "2018" OR ${MAYA_VERSION} VERSION_EQUAL 2019)
set(PYTHON_INCLUDE_DIR "${MAYA_DEVKIT_ROOT}/include/Python${PYBIND11_PYTHON_VERSION}/Python")
else()
set(PYTHON_INCLUDE_DIR "${MAYA_DEVKIT_ROOT}/include/Python")
endif()
Expand Down

0 comments on commit 5e32ebe

Please sign in to comment.