Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

makes cmake tests more verbose

  • Loading branch information...
commit 14cfb8618d07edd7abbfb2606dc48cc0fdb6dfe0 1 parent fe72679
@renemilk renemilk authored
Showing with 14 additions and 1 deletion.
  1. +12 −1 CMakeLists.txt
  2. +2 −0  CheckPythonModule.cmake
View
13 CMakeLists.txt
@@ -59,6 +59,17 @@ if (UNITSYNC_PYTHON_WRAPPER)
INSTALL(TARGETS ${pythonUnitsyncTarget} DESTINATION ${LIBDIR})
else (PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND AND python_pybindgen_FOUND AND python_pygccxml_FOUND)
MESSAGE(STATUS "Python unitsync wrapper will NOT be created")
- #output why?
+ if( NOT PYTHONLIBS_FOUND )
+ message( STATUS "\t because python libs were not found" )
+ endif( NOT PYTHONLIBS_FOUND )
+ if( NOT PYTHONINTERP_FOUND )
+ message( STATUS "\t because python interpreter was not found" )
+ endif( NOT PYTHONINTERP_FOUND )
+ if( NOT python_pybindgen_FOUND )
+ message( STATUS "\t because pybindgen was not found" )
+ endif( NOT python_pybindgen_FOUND )
+ if( NOT python_pygccxml_FOUND )
+ message( STATUS "\t because pygccxml was not found" )
+ endif( NOT python_pygccxml_FOUND )
endif (PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND AND python_pybindgen_FOUND AND python_pygccxml_FOUND)
endif (UNITSYNC_PYTHON_WRAPPER)
View
2  CheckPythonModule.cmake
@@ -4,6 +4,8 @@ macro(CheckPythonModule module)
execute_process(
COMMAND
${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/CheckPythonModule.py" "${module}"
+ WORKING_DIRECTORY
+ ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE
python_${module}_RESULT_VAR
)
Please sign in to comment.
Something went wrong with that request. Please try again.