Skip to content

Commit

Permalink
Fixed MinGW library link
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Sep 2, 2024
1 parent 34d9d10 commit e144c15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ target_compile_definitions (PluginSearcher PRIVATE
if (NOT MSVC)
target_compile_options (PluginSearcher PRIVATE
-pthread -fPIE)
if (WIN32)
target_compile_options (PluginSearcher PRIVATE
-static -static-libgcc -static-libstdc++)
endif (WIN32)
endif (NOT MSVC)
if (MSVC)
target_link_libraries (PluginSearcher PRIVATE juce-host-dev-kit::juce-full)
Expand All @@ -203,6 +207,10 @@ target_compile_definitions (FileRegistrar PRIVATE
if (NOT MSVC)
target_compile_options (FileRegistrar PRIVATE
-pthread -fPIE)
if (WIN32)
target_compile_options (FileRegistrar PRIVATE
-static -static-libgcc -static-libstdc++)
endif (WIN32)
endif (NOT MSVC)
if (MSVC)
target_link_libraries (FileRegistrar PRIVATE juce-host-dev-kit::juce-core)
Expand Down Expand Up @@ -237,6 +245,10 @@ if (NOT MSVC)
target_compile_options (VocalShaper PRIVATE
-pthread -fPIE
-msse3 -mavx2 -mavx512f)
if (WIN32)
target_compile_options (VocalShaper PRIVATE
-static -static-libgcc -static-libstdc++)
endif (WIN32)
endif (NOT MSVC)
if (MSVC)
target_link_libraries (VocalShaper PRIVATE juce-host-dev-kit::juce-full)
Expand Down

0 comments on commit e144c15

Please sign in to comment.