File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,10 @@ target_compile_options(TSCBasic PUBLIC
5757target_link_libraries (TSCBasic PUBLIC
5858 TSCLibc)
5959if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
60- target_link_libraries (TSCBasic PUBLIC
61- Foundation)
60+ if (Foundation_FOUND)
61+ target_link_libraries (TSCBasic PUBLIC
62+ Foundation)
63+ endif ()
6264endif ()
6365target_link_libraries (TSCBasic PRIVATE
6466 $<$<PLATFORM_ID:Windows>:Pathcch>)
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ target_link_libraries(TSCUtility PUBLIC
4848if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
4949 target_link_libraries (TSCUtility PRIVATE
5050 SQLite::SQLite3)
51- target_link_libraries (TSCUtility PUBLIC
52- FoundationNetworking)
51+ if (Foundation_FOUND)
52+ target_link_libraries (TSCUtility PUBLIC
53+ FoundationNetworking)
54+ endif ()
5355endif ()
5456# NOTE(compnerd) workaround for CMake not setting up include flags yet
5557set_target_properties (TSCUtility PROPERTIES
You can’t perform that action at this time.
0 commit comments