Skip to content

Commit

Permalink
Change WARNING -> FATAL_ERROR in python cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkwah authored and markusdregi committed Oct 25, 2019
1 parent be33a98 commit eeb411d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@ init_python( 2.7 )

find_python_package(pandas 0.17 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_pandas)
message(WARNING "Pandas module not found Python wrappers not enabled. Install with: \"pip install pandas\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
message(FATAL_ERROR "Pandas module not found Python wrappers not enabled. Install with: \"pip install pandas\"")
endif()

find_python_package(numpy 1.7.1 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_numpy)
message(WARNING "numpy module not found - Python wrappers not enabled. Install with: \"pip install numpy\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
message(FATAL_ERROR "numpy module not found - Python wrappers not enabled. Install with: \"pip install numpy\"")
endif()

find_python_package(cwrap 1 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_cwrap)
message(WARNING "cwrap module not found Python wrappers not enabled. Install with: \"pip install cwrap\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
message(FATAL_ERROR "cwrap module not found Python wrappers not enabled. Install with: \"pip install cwrap\"")
endif()

configure_file(test_env.py.in ${PROJECT_BINARY_DIR}/${PYTHON_INSTALL_PREFIX}/test_env.py )
Expand Down

0 comments on commit eeb411d

Please sign in to comment.