Skip to content

Commit

Permalink
chore: add comments to cmake for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMelt committed Nov 19, 2024
1 parent 23c8c34 commit e491c33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ set(LIB_NAME ftorch)
set(PACKAGE_VERSION 0.1)

if (WIN32)
# if building on windows we need to make sure the symbols are exported
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
# required to build the .dll on windows
set (BUILD_SHARED_LIBS TRUE)
endif ()

Expand Down

0 comments on commit e491c33

Please sign in to comment.