Skip to content

Commit e823b0c

Browse files
authored
Merge pull request #589 from paperchalice/develop
Generate import library in CMake
2 parents b996311 + b7ed573 commit e823b0c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

helper.pl

+5-1
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

+4
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)