Commit 3d8ab8f8 authored by Patrick Spendrin's avatar Patrick Spendrin
Browse files

the msvc version of openmp is to old

svn path=/branches/KDE/4.4/kdegraphics/libs/libkdcraw/; revision=1077635
parent ec5a0e1c
......@@ -74,7 +74,7 @@ STRING(REPLACE "-patch " "." VERSION_CMAKE_INFO "${VERSION_CMAKE_INFO}")
MESSAGE(STATUS "CMake version (cleaned): ${VERSION_CMAKE_INFO}")
MACRO_ENSURE_VERSION("2.6.3" "${VERSION_CMAKE_INFO}" VERSION_CMAKE)
IF(VERSION_CMAKE)
IF(VERSION_CMAKE AND NOT MSVC)
MACRO_OPTIONAL_FIND_PACKAGE(OpenMP)
IF(OPENMP_FOUND)
MESSAGE(STATUS "OpenMP detected: LibRaw will be compiled with parallelized code.")
......@@ -86,7 +86,7 @@ IF(VERSION_CMAKE)
ELSE(VERSION_CMAKE)
MESSAGE(STATUS "CMake version too old: cannot detected OpenMP: LibRaw will not be compiled with parallelized code.")
SET(USE_OPENMP FALSE)
ENDIF(VERSION_CMAKE)
ENDIF(VERSION_CMAKE AND NOT MSVC)
IF(OPENMP_FOUND)
ADD_DEFINITIONS(${OpenMP_CXX_FLAGS})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment