From: swordow Date: Tue, 4 Jun 2019 01:42:47 +0000 (+0800) Subject: fix static build extern error X-Git-Tag: v6.9.3~75^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=604928affb8f03c20153cd5ea53852b77ab06c98;p=onig fix static build extern error --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8348b06..ac36cf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,7 @@ if(MSVC) $<$:/MT> $<$:/MTd> ) + target_compile_definitions(onig PUBLIC -DONIG_EXTERN=) endif() elseif(CMAKE_COMPILER_IS_GNUCC) target_compile_options(onig PRIVATE