From: adam Date: Tue, 5 Oct 2010 15:02:02 +0000 (+0000) Subject: Fix tiny windows bug X-Git-Tag: V5_1_5rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c50beaaa6f3207e219efae5d64758b02048690d;p=modules%2Fkernel.git Fix tiny windows bug --- 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}") ''')