Skip to content

Commit

Permalink
Merge pull request #1324 from dcoeurjo/openmpissue
Browse files Browse the repository at this point in the history
Fixing openmp library link (#1323)
  • Loading branch information
dcoeurjo committed Jul 28, 2018
2 parents a395742 + fa3ad85 commit 8f3ca8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
[#1326](https://github.com/DGtal-team/DGtal/pull/1326)

- *Base*
- Fixes wrong members in PredicateCombiner (David Coeurjolly,
- Fixing wrong members in PredicateCombiner (David Coeurjolly,
[#1321](https://github.com/DGtal-team/DGtal/pull/1321))
- Fixing openmp flags (David Coeurjolly,
[#1324](https://github.com/DGtal-team/DGtal/pull/1324))
- Add assignment operator to ImageContainerByITKImage (Pablo Hernandez,
[#1336](https://github.com/DGtal-team/DGtal/pull/1336))

Expand Down
3 changes: 2 additions & 1 deletion cmake/CheckDGtalOptionalDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ IF(WITH_OPENMP)
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(DGtalLibDependencies ${DGtalLibDependencies} ${OpenMP_CXX_LIBRARIES})
ADD_DEFINITIONS("-DWITH_OPENMP ")
message(STATUS "OpenMP found.")
message(STATUS "OpenMP found. Libs: ${OpenMP_CXX_LIBRARIES}")
ELSE(OPENMP_FOUND)
message(FATAL_ERROR "OpenMP support not available.")
ENDIF(OPENMP_FOUND)
Expand Down
1 change: 0 additions & 1 deletion src/DGtal/topology/VoxelComplex.ih
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <boost/property_map/property_map.hpp>
#include <iostream>
#ifdef WITH_OPENMP
// #include <experimental/algorithm>
#include <omp.h>
#endif
//////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 8f3ca8c

Please sign in to comment.