From c112c9aa00ec72f8e06e6b2d49c0155ad4d4d227 Mon Sep 17 00:00:00 2001 From: hbristow Date: Mon, 2 Sep 2013 16:43:58 +1000 Subject: [PATCH] Made binding compilation less verbose --- modules/matlab/compile.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/matlab/compile.cmake b/modules/matlab/compile.cmake index ebc3fd9a68..e29b9546cf 100644 --- a/modules/matlab/compile.cmake +++ b/modules/matlab/compile.cmake @@ -20,6 +20,9 @@ if ("${CONFIGURATION}" MATCHES "Debug") return() endif() +# ----------------------------------------------------------------------------- +# Compile +# ----------------------------------------------------------------------------- # for each generated source file: # 1. check if the file has already been compiled # 2. attempt compile if required @@ -29,7 +32,6 @@ foreach(SOURCE_FILE ${SOURCE_FILES}) # strip out the filename get_filename_component(FILENAME ${SOURCE_FILE} NAME_WE) # compile the source file using mex - execute_process(COMMAND echo ${FILENAME}) if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/+cv/${FILENAME}.${MATLAB_MEXEXT}) execute_process( COMMAND ${MATLAB_MEX_SCRIPT} ${MEX_OPTS} "CXXFLAGS=\$CXXFLAGS ${MEX_CXXFLAGS}" ${MEX_INCLUDE_DIRS_LIST} @@ -40,6 +42,7 @@ foreach(SOURCE_FILE ${SOURCE_FILES}) ) endif() # TODO: If a mex file fails to compile, should we error out? + # TODO: Warnings are currently treated as errors... if (FAILED) message(FATAL_ERROR "Failed to compile ${FILENAME}: ${FAILED}") endif()