message: CMake: re-fixed OpenMP build.
diff: @@ -44,6 +44,8 @@ option( USER_PATHS_IFF "Use the compiler and library paths etc. for the IFF Cl
  ### the compiler. Either pass them in via command-line or use
  ### the CUDA_TOOLKIT_ROOT_DIR variable.
  if( SPIRIT_USE_CUDA )
  + ### Deactivate OpenMP
  + set( SPIRIT_USE_OPENMP OFF )
  ### Set cuda toolkit path
  if( NOT CUDA_TOOLKIT_ROOT_DIR )
  if ( APPLE OR UNIX )
  @@ -72,14 +74,6 @@ if( SPIRIT_USE_CUDA )
  elseif( WIN32 )
  # MESSAGE( STATUS ">> We are on Windows... CUDA untested" )
  endif( )
  -#############################################
  -elseif ( SPIRIT_USE_OPENMP )
  - include( FindOpenMP )
  - if( OPENMP_FOUND )
  - set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" )
  - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" )
  - set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}" )
  - endif( )
  endif( )
  #############################################
  @@ -131,6 +125,15 @@ if( SPIRIT_BUILD_TEST )
  enable_testing()
  endif()
  #############################################
  +if ( SPIRIT_USE_OPENMP )
  + include( FindOpenMP )
  + if( OPENMP_FOUND )
  + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" )
  + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" )
  + set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}" )
  + endif( )
  +endif( )
  +#############################################
  