Include CMakePushCheckState on our own

Functions in this library was made available by other unrelated
modules, making this file unusable on its own.
This commit is contained in:
Roland Kaufmann 2013-01-30 22:28:03 +01:00
parent f8d047d4db
commit f89ad15fe9

View File

@ -179,8 +179,9 @@ endif (DEFINED ERT_LINKER_FLAGS)
# see if we can compile a minimum example
# CMake logical test doesn't handle lists (sic)
if (NOT ERT_LIBRARIES MATCHES "-NOTFOUND")
cmake_push_check_state ()
include (CMakePushCheckState)
include (CheckCSourceCompiles)
cmake_push_check_state ()
set (CMAKE_REQUIRED_INCLUDES ${ERT_INCLUDE_DIR})
set (CMAKE_REQUIRED_LIBRARIES ${ERT_LIBRARIES})
check_c_source_compiles (