Skip to content

Commit

Permalink
attempt to fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Dec 2, 2022
1 parent 1d2e122 commit d6e9473
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ARRCON/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@ if (WIN32)
GIT_TAG origin/master
)
FetchContent_MakeAvailable("${libunistd_name}")

elseif(APPLE)
set(ARRCON_LINK_TYPE -static)
endif()
if(NOT DEFINED ARRCON_LINK_TYPE)
set(ARRCON_LINK_TYPE PRIVATE)
endif()

target_link_libraries(ARRCON PRIVATE TermAPI filelib "${libunistd_name}")
target_link_libraries(ARRCON ${ARRCON_LINK_TYPE} TermAPI filelib "${libunistd_name}")

include(PackageInstaller)

Expand Down

0 comments on commit d6e9473

Please sign in to comment.