Skip to content

Commit

Permalink
Re #9341. Don't add the OpenMP flag on Windows.
Browse files Browse the repository at this point in the history
It causes a warning in link.exe (that states it's not using the flag
because it doesn't know what it means).
  • Loading branch information
RussellTaylor committed Apr 16, 2014
1 parent 82974fb commit 44c1ca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Build/CMake/CommonSetup.cmake
Expand Up @@ -217,7 +217,9 @@ find_package ( OpenMP )
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_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}" )
if ( NOT WIN32 )
set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}" )
endif ()
endif ()


Expand Down

0 comments on commit 44c1ca4

Please sign in to comment.