Skip to content

Commit

Permalink
Fix CMake build for Windows
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved:
#1623

We recently added a dependency on `timeBeginPeriod` and `timeEndPeriod`
from `winmm.lib` for Windows builds. This change fixes the CMake build
for Windows.

Reviewed By: neildhar

Differential Revision: D69786895

fbshipit-source-id: c2464984b82e8b404e3784c09d3952bd90f4b11c
  • Loading branch information
rozele authored and facebook-github-bot committed Feb 18, 2025
1 parent c615b11 commit 945c9f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/VM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ set(link_libs
dtoa
)

if (WIN32)
list(APPEND link_libs winmm)
endif()

if(HERMES_ENABLE_INTL)
list(APPEND link_libs hermesPlatformIntl)
endif()
Expand Down

0 comments on commit 945c9f8

Please sign in to comment.