Skip to content

Commit 06fb852

Browse files
authored
Merge pull request #148 from slayoo/camp
trying to sort out macOS gfortran so missing on default brew gcc install
2 parents 370cb1e + bfc70fd commit 06fb852

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ target_compile_definitions(_PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO})
297297
target_link_libraries(_PyPartMC PRIVATE partmclib)
298298
if (APPLE)
299299
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()
300303
endif()
301304
if (WIN32)
302305
target_link_libraries(_PyPartMC PRIVATE -static gcc stdc++ winpthread quadmath -dynamic)

0 commit comments

Comments
 (0)