Commit 9c2698ee authored by Dominik Bongartz's avatar Dominik Bongartz
Browse files

Fixes in ipoptConfig.cmake

- Updated CMake version requirement to avoid a deprecation warning
- Added a check for memory.h. The corresponding header already had a
  #cmakedefine for this, but the check was missing.
parent 782be222
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.8)
#project(IpoptConfig C CXX)
......@@ -47,6 +47,8 @@ check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(float.h HAVE_FLOAT_H)
check_include_file(ieeefp.h HAVE_IEEEFP_H)
check_include_file(memory.h HAVE_MEMORY_H)
#check functions
check_function_exists(finite HAVE_FINITE)
......@@ -110,4 +112,4 @@ if(VERSION_NEEDS_UPDATING)
${CMAKE_CURRENT_BINARY_DIR}/IpoptConfig/include/config_ipopt.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/IpoptConfig/include/config_ipopt.h
)
endif()
\ No newline at end of file
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment