File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -145,13 +145,13 @@ endif()
145145set (METIS_ROOT "" CACHE STRING "Root directory of METIS" )
146146message (STATUS "METIS_ROOT is " ${METIS_ROOT} )
147147
148- if (PYTHON_BUILD_SETUP AND NOT (METIS_ROOT STREQUAL "" ))
149- set (METIS_SRC_DIR ${METIS_ROOT} )
150- set (METIS_DST_DIR ${CMAKE_BINARY_DIR} /metis)
151- file (COPY ${METIS_SRC_DIR} /include DESTINATION ${METIS_DST_DIR} )
152- file (COPY ${METIS_SRC_DIR} /lib DESTINATION ${METIS_DST_DIR} )
153- return ()
154- endif ()
148+ # if (PYTHON_BUILD_SETUP AND NOT (METIS_ROOT STREQUAL ""))
149+ # set(METIS_SRC_DIR ${METIS_ROOT})
150+ # set(METIS_DST_DIR ${CMAKE_BINARY_DIR}/metis)
151+ # file(COPY ${METIS_SRC_DIR}/include DESTINATION ${METIS_DST_DIR})
152+ # file(COPY ${METIS_SRC_DIR}/lib DESTINATION ${METIS_DST_DIR})
153+ # return()
154+ # endif()
155155
156156# If a METIS install was specified try to use it first.
157157if (NOT (METIS_ROOT STREQUAL "" ))
Original file line number Diff line number Diff line change @@ -57,12 +57,18 @@ target_link_libraries(_core PRIVATE pybind11::headers)
5757
5858if (HIPO)
5959 target_link_libraries (_core PRIVATE OpenBLAS::OpenBLAS)
60- if (NOT METIS_ROOT STREQUAL "" )
61- target_include_directories (_core PRIVATE ${METIS_DST_DIR} /include )
62- target_link_libraries (_core PRIVATE ${METIS_DST_DIR} /lib/metis.lib)
63- else ()
60+ # if (NOT METIS_ROOT STREQUAL "")
61+ # target_include_directories(_core PRIVATE ${METIS_DST_DIR}/include)
62+ # target_link_libraries(_core PRIVATE ${METIS_DST_DIR}/lib/metis.lib)
63+ # else()
64+
65+ if (metis_FOUND)
6466 target_link_libraries (_core PRIVATE metis)
67+ else ()
68+ target_include_directories (_core PRIVATE "${METIS_PATH} " )
69+ target_link_libraries (_core PRIVATE "${METIS_LIB} " )
6570 endif ()
71+
6672endif ()
6773
6874# sources for python
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ cmake.args = [
3838 " -DHIPO=ON" ,
3939 " -DCMAKE_TOOLCHAIN_FILE='C:/Users/galab/code/repos/vcpkg/scripts/buildsystems/vcpkg.cmake'" ,
4040 " -DVCPKG_TARGET_TRIPLET='x64-windows-static'" ,
41- # "-DMETIS_ROOT='C:/Users/galab/installs/metis-521-ts'"
41+ " -DMETIS_ROOT='C:/Users/galab/installs/metis-521-ts'"
4242]
4343
4444wheel.expand-macos-universal-tags = true
You can’t perform that action at this time.
0 commit comments