Skip to content

Commit

Permalink
[wheel] GKlib fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Oct 30, 2023
1 parent 88b0d21 commit 833280a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,20 @@ CPMAddPackage(

if(OGS_BUILD_UTILS)
if(NOT GUIX_BUILD)
set(_win_metis_options "MSVC FALSE")
set(_metis_options "MSVC FALSE")
if(WIN32)
set(_win_metis_options "MSVC TRUE")
set(_metis_options "MSVC TRUE" "BUILD_SHARED_LIBS OFF")
else()
list(APPEND _metis_options
"CMAKE_C_FLAGS -D_POSIX_C_SOURCE=200809L"
)
endif()
CPMFindPackage(
NAME GKlib
GIT_REPOSITORY https://github.com/KarypisLab/GKlib
GIT_TAG 8bd6bad750b2b0d90800c632cf18e8ee93ad72d7
VERSION 5.1.1
OPTIONS "CMAKE_POLICY_DEFAULT_CMP0042 NEW" ${_win_metis_options}
OPTIONS "CMAKE_POLICY_DEFAULT_CMP0042 NEW" ${_metis_options}
EXCLUDE_FROM_ALL YES
)
CPMFindPackage(
Expand Down

0 comments on commit 833280a

Please sign in to comment.