Skip to content

Commit

Permalink
CMake: Fix CMAKE_C_FLAGS when WITH_OPENMP=ON
Browse files Browse the repository at this point in the history
`CMAKE_C_FLAGS` was set to the value of `CMAKE_CXX_FLAGS` when `WITH_OPENMP=ON`
  • Loading branch information
phcerdan committed May 26, 2020
1 parent 92ab4d0 commit 2d4702c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CheckDGtalOptionalDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ IF(WITH_OPENMP)
IF(OPENMP_FOUND)
SET(OPENMP_FOUND_DGTAL 1)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_C_FLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(DGtalLibDependencies ${DGtalLibDependencies} ${OpenMP_CXX_LIBRARIES})
ADD_DEFINITIONS("-DWITH_OPENMP ")
message(STATUS "OpenMP found. Libs: ${OpenMP_CXX_LIBRARIES}")
Expand Down

0 comments on commit 2d4702c

Please sign in to comment.