Skip to content

Commit

Permalink
fix: fatal error with install_dependency
Browse files Browse the repository at this point in the history
It reports fatal errors on apple, so we try to give it a more general
else condition branch

Close #12

Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Nov 18, 2023
1 parent e693382 commit ea6de71
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/install/InstallDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ function(install_dependency)
list(APPEND arg_POST_INCLUDE_REGEXES ".*d.dll")
endif()
endif()

if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
# exclude windows API earlier
list(
APPEND
arg_PRE_EXCLUDE_REGEXES
Expand All @@ -91,13 +93,15 @@ function(install_dependency)
"ieshims.dll"
"emclient.dll"
"devicelockhelpers.dll"
"python*.dll") # windows API
list(APPEND arg_POST_EXCLUDE_REGEXES "WINDOWS" "system32") # system dlls
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
"python*.dll")

# exclude system dlls directories later
list(APPEND arg_POST_EXCLUDE_REGEXES "WINDOWS" "system32")
else()
# exclude windows API earlier
list(
APPEND
arg_PRE_EXCLUDE_REGEXES
"/cmov/"
"ld-linux[\.\-]"
"libc[\.\-]"
"libdl[\.\-]"
Expand Down

0 comments on commit ea6de71

Please sign in to comment.