diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index d595f93..1864512 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -48,16 +48,12 @@ endif( WITH_LCMS ) ##### check for OpenMP if( WITH_OPENMP ) - if( CMAKE_CXX_COMPILER_ID MATCHES "GNU" ) - 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}" ) - else() - tde_message_fatal( "OpenMP is requested, but was not found on your system" ) - endif() + 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}" ) else() - tde_message_fatal( "OpenMP build is available for the GNU GCC compiler only" ) + tde_message_fatal( "OpenMP is requested, but was not found on your system" ) endif() endif( WITH_OPENMP ) |