Skip to content

Commit

Permalink
Fixed Windows Includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordonbc committed May 17, 2024
1 parent 2ad6e2d commit 80d1a03
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions HarmonyLinkLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,27 @@ foreach(TYPE IN ITEMS DEBUG RELEASE)
)
endforeach()

# Link the fmt library and standard library
target_link_libraries(HarmonyLinkLibStatic
PUBLIC
fmt
stdc++fs
)
# Link the fmt library and standard library conditionally
if (UNIX)
target_link_libraries(HarmonyLinkLibStatic
PUBLIC
fmt
stdc++fs
)

target_link_libraries(HarmonyLinkLibShared
PUBLIC
fmt
stdc++fs
)
target_link_libraries(HarmonyLinkLibShared
PUBLIC
fmt
stdc++fs
)
elseif (WIN32)
target_link_libraries(HarmonyLinkLibStatic
PUBLIC
fmt
)

target_link_libraries(HarmonyLinkLibShared
PUBLIC
fmt
)
endif()

0 comments on commit 80d1a03

Please sign in to comment.