Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
5d0acbd2
Commit
5d0acbd2
authored
Feb 23, 2021
by
Jan Möbius
Browse files
Added Flag to disable ipopt
parent
4cf9b55b
Pipeline
#17018
passed with stages
in 11 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5d0acbd2
...
...
@@ -17,6 +17,9 @@ include(VCIQt)
# Flag to enable or disable QT widgets in CoMISo
set
(
WANT_COMISO_QT ON CACHE BOOL
"Enable Qt support in CoMISo"
)
# Flag to enable or disable IPOPT
set
(
ENABLE_IPOPT ON CACHE BOOL
"Build with IPOPT (if found)"
)
if
(
WANT_COMISO_QT
)
set
(
QT5_REQUIRED_PACKAGES
...
...
@@ -275,8 +278,11 @@ else ()
set
(
COMISO_MUMPS_CONFIG_FILE_SETTINGS
"#define COMISO_MUMPS_AVAILABLE 0"
)
endif
()
find_package
(
IPOPT
)
if
(
IPOPT_FOUND
)
if
(
ENABLE_IPOPT
)
find_package
(
IPOPT
)
endif
()
if
(
ENABLE_IPOPT AND IPOPT_FOUND
)
set
(
COMISO_IPOPT_CONFIG_FILE_SETTINGS
"#define COMISO_IPOPT_AVAILABLE 1"
)
list
(
APPEND COMISO_INCLUDE_DIRECTORIES
${
IPOPT_INCLUDE_DIRS
}
)
list
(
APPEND COMISO_LINK_DIRECTORIES
${
IPOPT_LIBRARY_DIRS
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment