We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 370cb1e + bfc70fd commit 06fb852Copy full SHA for 06fb852
CMakeLists.txt
@@ -297,6 +297,9 @@ target_compile_definitions(_PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO})
297
target_link_libraries(_PyPartMC PRIVATE partmclib)
298
if (APPLE)
299
target_link_options(_PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind)
300
+ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
301
+ target_link_libraries(_PyPartMC PRIVATE -static gfortran -dynamic)
302
+ endif()
303
endif()
304
if (WIN32)
305
target_link_libraries(_PyPartMC PRIVATE -static gcc stdc++ winpthread quadmath -dynamic)
0 commit comments