py-api: store frequently used strings as unicode PyObject's to avoid creating/distroy...
[blender.git] / build_files / cmake / macros.cmake
index 7a8158227a91b2e995a674296eccd3368f0450d6..9b19ed331622307e594ce3146d3540eee064241e 100644 (file)
@@ -37,7 +37,7 @@ macro(blender_source_group
 
        foreach(_SRC ${sources})
                get_filename_component(_SRC_EXT ${_SRC} EXT)
 
        foreach(_SRC ${sources})
                get_filename_component(_SRC_EXT ${_SRC} EXT)
-               if(${_SRC_EXT} MATCHES ".h" OR ${_SRC_EXT} MATCHES ".hpp")
+               if((${_SRC_EXT} MATCHES ".h") OR (${_SRC_EXT} MATCHES ".hpp"))
                        source_group("Header Files" FILES ${_SRC})
                else()
                        source_group("Source Files" FILES ${_SRC})
                        source_group("Header Files" FILES ${_SRC})
                else()
                        source_group("Source Files" FILES ${_SRC})