Skip to content

Commit

Permalink
Fix CMakelists.txt for mumps on Ubuntu/Debian.
Browse files Browse the repository at this point in the history
If ipopt were properly compiled on Ubuntu, we would end up with
-ldmumps_seq_seq. This solves this issue.
  • Loading branch information
Benjamin Chrétien committed May 28, 2015
1 parent 37e49a8 commit 900b45e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -90,7 +90,9 @@ ADD_REQUIRED_DEPENDENCY("ipopt")
IF(CMAKE_SYSTEM_NAME MATCHES "Linux"
AND EXISTS "/etc/debian_version"
AND IPOPT_PREFIX MATCHES "/usr")
STRING(REPLACE "-ldmumps" "-ldmumps_seq" IPOPT_LDFLAGS "${IPOPT_LDFLAGS}")
IF(NOT IPOPT_LDFLAGS MATCHES "-ldmumps_seq")
STRING(REPLACE "-ldmumps" "-ldmumps_seq" IPOPT_LDFLAGS "${IPOPT_LDFLAGS}")
ENDIF()
ENDIF()


Expand Down

0 comments on commit 900b45e

Please sign in to comment.