Skip to content

Commit

Permalink
Generate import library in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Jan 30, 2025
1 parent 5809141 commit 956e885
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helper.pl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ sub make_sources_cmake {
foreach my $hobj (sort @headers) {
$output .= $hobj . "\n";
}
$output .= ")\n";
$output .= ")
if(MSVC AND BUILD_SHARED_LIBS)
list(APPEND SOURCES tommath.def)
endif()\n";
return $output;
}

Expand Down
4 changes: 4 additions & 0 deletions sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,7 @@ tommath_cutoffs.h
tommath_private.h
tommath_superclass.h
)

if(MSVC AND BUILD_SHARED_LIBS)
list(APPEND SOURCES tommath.def)
endif()

0 comments on commit 956e885

Please sign in to comment.