diff --git a/cmake/audio.rules.txt b/cmake/audio.rules.txt index a8365246..170b821e 100644 --- a/cmake/audio.rules.txt +++ b/cmake/audio.rules.txt @@ -2,4 +2,4 @@ FOREACH (audio_file ${audio_files}) INSTALL( FILES wav/${audio_file} DESTINATION ${SEMS_AUDIO_PREFIX}/sems/audio/${sems_module_name} ) -ENDFOREACH() +ENDFOREACH(audio_file ${audio_files}) diff --git a/cmake/config.rules.txt b/cmake/config.rules.txt index e3240aeb..1bc81d86 100644 --- a/cmake/config.rules.txt +++ b/cmake/config.rules.txt @@ -14,4 +14,4 @@ FOREACH (config_file ${sems_module_name} ${sems_config_files}) INSTALL( FILES ./etc/${config_file}.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/ ) -ENDFOREACH() +ENDFOREACH(config_file ${sems_module_name} ${sems_config_files}) diff --git a/cmake/doc.rules.txt b/cmake/doc.rules.txt index 673b75e2..0be4fb3c 100644 --- a/cmake/doc.rules.txt +++ b/cmake/doc.rules.txt @@ -2,7 +2,7 @@ FOREACH (doc_file ${doc_files}) INSTALL( FILES ${doc_file} DESTINATION ${SEMS_DOC_PREFIX}/sems-${SEMS_MAJOR_VERSION}.${SEMS_MINOR_VERSION}.${SEMS_BUILD_VERSION} ) -ENDFOREACH() +ENDFOREACH(doc_file ${doc_files}) FOREACH (doc_dir ${doc_dirs}) INSTALL( @@ -10,4 +10,4 @@ FOREACH (doc_dir ${doc_dirs}) DESTINATION ${SEMS_DOC_PREFIX}/sems-${SEMS_MAJOR_VERSION}.${SEMS_MINOR_VERSION}.${SEMS_BUILD_VERSION} PATTERN .svn EXCLUDE ) -ENDFOREACH() +ENDFOREACH(doc_dir ${doc_dirs}) diff --git a/cmake/python.rules.txt b/cmake/python.rules.txt index 5cce24b8..54f78804 100644 --- a/cmake/python.rules.txt +++ b/cmake/python.rules.txt @@ -3,5 +3,5 @@ FUNCTION(PYTHON_SOURCES_COMPILE python_files sems_python_dir) EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')") EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')") INSTALL (FILES ${python_file} ${python_file}c ${python_file}o DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir}) - ENDFOREACH() + ENDFOREACH(python_file ${python_files}) ENDFUNCTION()