Skip to content

Commit

Permalink
Link to static STL on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Apr 5, 2024
1 parent 175f4b9 commit c05129d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ if(NOT TARGET c++)
PROPERTIES
IMPORTED_LOCATION ${c++}
)

if(target MATCHES "win32")
target_link_options(
c++
INTERFACE
/DEFAULTLIB:libcpmt$<$<CONFIG:Debug>:d>
)
endif()
endif()

if(NOT TARGET v8)
Expand Down

0 comments on commit c05129d

Please sign in to comment.