Skip to content

Commit

Permalink
Link with libgfortran and libgcc statically on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 28, 2015
1 parent ca8a74e commit 87011a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ipopt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${IPOPTFORT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${IPOPTFORT_BINARY_DIR}/lib)

# Link the gfortran runtime statically if possible.
if (NOT BUILD_SHARED_LIBS)
if (NOT BUILD_SHARED_LIBS OR CMAKE_GNUtoMS)
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -static-libgfortran -static-libgcc")
endif ()
Expand Down

0 comments on commit 87011a6

Please sign in to comment.