summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-08-29 16:32:54 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-08-29 16:33:04 +0200
commit05c71a837285074c711e3aaff5e2ca878ee1b862 (patch)
treedc9e687c5524d6a923d49ef45d055760bc897e54 /ConfigureChecks.cmake
parent2e4e81b25e17309dadfcbce6cda68a0bf9516305 (diff)
downloadlibkdcraw-05c71a837285074c711e3aaff5e2ca878ee1b862.tar.gz
libkdcraw-05c71a837285074c711e3aaff5e2ca878ee1b862.zip
Remove #pragma omp from definition of structure in the header file.
Use #pragma omp relates to code blocks, which is usually not the case of the header files. Therefore, use in the definition of structure seems incorrect and may cause FTBFS with some OpenMP implementations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake14
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 )