[Initng-svn] r3762 - initng-ifiles/trunk/cmake
svn at initng.thinktux.net
svn at initng.thinktux.net
Tue Apr 11 18:07:26 CEST 2006
Author: biebl
Date: Tue Apr 11 18:07:25 2006
New Revision: 3762
Modified:
initng-ifiles/trunk/cmake/InitngMacros.cmake
Log:
- Reset _i_FILES on invocation, otherwise the existing value is propagated to subdirectories.
- Don't skip the first ii-file. This fixes the problem of net.i not being processed and installed.
Modified: initng-ifiles/trunk/cmake/InitngMacros.cmake
==============================================================================
--- initng-ifiles/trunk/cmake/InitngMacros.cmake (original)
+++ initng-ifiles/trunk/cmake/InitngMacros.cmake Tue Apr 11 18:07:25 2006
@@ -1,10 +1,11 @@
-MACRO(PROCESS_IIFILES _i_FILES _ii_FILES)
- SET(_i_FILES)
+MACRO(PROCESS_IIFILES _i_FILES)
+ # reset the variable
+ SET(${_i_FILES})
+
FOREACH(_current_FILE ${ARGN})
- get_filename_component(_tmp_FILE ${_current_FILE} ABSOLUTE)
- get_filename_component(_abs_PATH ${_tmp_FILE} PATH)
- get_filename_component(_basename ${_tmp_FILE} NAME_WE)
-
+ GET_FILENAME_COMPONENT(_tmp_FILE ${_current_FILE} ABSOLUTE)
+ GET_FILENAME_COMPONENT(_abs_PATH ${_tmp_FILE} PATH)
+ GET_FILENAME_COMPONENT(_basename ${_tmp_FILE} NAME_WE)
SET(_i_FILE ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.i)
ADD_CUSTOM_TARGET(${_basename} ALL
COMMAND echo "Processing: ${_current_FILE}"
More information about the Initng-svn
mailing list