Skip to content

Commit b7ed573

Browse files
authored
Generate import library in CMake
1 parent b996311 commit b7ed573

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

helper.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ sub make_sources_cmake {
249249
foreach my $hobj (sort @headers) {
250250
$output .= $hobj . "\n";
251251
}
252-
$output .= ")\n";
252+
$output .= ")
253+
254+
if(MSVC AND BUILD_SHARED_LIBS)
255+
list(APPEND SOURCES tommath.def)
256+
endif()\n";
253257
return $output;
254258
}
255259

sources.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,7 @@ tommath_cutoffs.h
173173
tommath_private.h
174174
tommath_superclass.h
175175
)
176+
177+
if(MSVC AND BUILD_SHARED_LIBS)
178+
list(APPEND SOURCES tommath.def)
179+
endif()

0 commit comments

Comments
 (0)