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
57
57
target_link_libraries (TSCBasic PUBLIC
58
58
TSCLibc )
59
59
if (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 ()
62
64
endif ()
63
65
target_link_libraries (TSCBasic PRIVATE
64
66
$< $< PLATFORM_ID:Windows> :Pathcch> )
Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ target_link_libraries(TSCUtility PUBLIC
48
48
if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
49
49
target_link_libraries (TSCUtility PRIVATE
50
50
SQLite::SQLite3 )
51
- target_link_libraries (TSCUtility PUBLIC
52
- FoundationNetworking )
51
+ if (Foundation_FOUND )
52
+ target_link_libraries (TSCUtility PUBLIC
53
+ FoundationNetworking )
54
+ endif ()
53
55
endif ()
54
56
# NOTE(compnerd) workaround for CMake not setting up include flags yet
55
57
set_target_properties (TSCUtility PROPERTIES
You can’t perform that action at this time.
0 commit comments