From ef6326a174e6880be5e2eaeac26a2c5de0768807 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Tue, 21 Mar 2017 19:46:50 -0700 Subject: mpm: python refactoring --- mpm/lib/lmk04828/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mpm/lib/lmk04828') diff --git a/mpm/lib/lmk04828/CMakeLists.txt b/mpm/lib/lmk04828/CMakeLists.txt index 4235cb34a..b3621034a 100644 --- a/mpm/lib/lmk04828/CMakeLists.txt +++ b/mpm/lib/lmk04828/CMakeLists.txt @@ -2,7 +2,9 @@ MACRO(ETTUS_PYTHON_GEN_SOURCE pyfile outfile) #ensure that the directory exists for outfile GET_FILENAME_COMPONENT(outfile_dir ${outfile} PATH) FILE(MAKE_DIRECTORY ${outfile_dir}) - + IF(NOT PYTHON_EXECUTABLE) + MESSAGE( FATAL_ERROR "No python executable found to generate ic_regmaps!" ) + ENDIF(NOT PYTHON_EXECUTABLE) #make the outfile depend on the python script ADD_CUSTOM_COMMAND( OUTPUT ${outfile} DEPENDS ${pyfile} ${ETTUS_PYTHON_GEN_SOURCE_DEPS} -- cgit v1.2.3