Buildsystem: add missing argument to macro. Fixes CMake issues on Win

--HG--
branch : trunk
This commit is contained in:
azazel
2010-08-20 12:08:12 +06:00
parent 8d62f4e6ce
commit acc43ea47d

View File

@@ -178,7 +178,7 @@ macro(OptimizeForArchitecture)
# MSVC on 32 bit can select only /arch:SSE2
# MSVC on 64 bit cannot select anything
if(NOT CMAKE_CL_64)
_my_find(_enable_vector_unit_list "sse2")
_my_find(_enable_vector_unit_list "sse2" SSE2_FOUND)
AddCompilerFlag("/arch:SSE2")
endif(NOT CMAKE_CL_64)
foreach(_flag ${_enable_vector_unit_list})