]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix tiny windows bug
authoradam <adam>
Tue, 5 Oct 2010 15:02:02 +0000 (15:02 +0000)
committeradam <adam>
Tue, 5 Oct 2010 15:02:02 +0000 (15:02 +0000)
salome_adm/cmake_files/am2cmake.py

index 3e12b42a79f355f7844db509b939dab2e8df25bc..09498daf86e41689ab664cd14f7bc16c7b4b12b8 100644 (file)
@@ -1518,6 +1518,7 @@ class CMakeFile(object):
         SET(f)
         ENDIF(f STREQUAL v)
         ENDFOREACH(v ${vars})
+        IF(f)
         string(REGEX MATCH "^-I" test_include ${f})
         if(test_include)
         string(REGEX REPLACE "^-I" "" include_dir ${f})
@@ -1534,6 +1535,7 @@ class CMakeFile(object):
         else(test_include)
         SET(flags "${flags} ${f}")
         endif(test_include)
+        ENDIF(f)
         ENDFOREACH(f ${var})
         SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
         ''')