From 6c50beaaa6f3207e219efae5d64758b02048690d Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 5 Oct 2010 15:02:02 +0000 Subject: [PATCH] Fix tiny windows bug --- salome_adm/cmake_files/am2cmake.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 3e12b42a7..09498daf8 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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}") ''') -- 2.39.2