Skip to content

Commit

Permalink
Merge pull request #54 from climbfuji/openmp_bugfix
Browse files Browse the repository at this point in the history
Bugfix for OpenMP
  • Loading branch information
climbfuji authored Feb 16, 2020
2 parents 512fdd4 + 8ee4b58 commit 8934efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(ufs_util VERSION 1.1.1)
set(${PROJECT_NAME}_VERSION ${PROJECT_VERSION} CACHE INTERNAL "${PROJECT_NAME} version number")
enable_language (Fortran)

option(OPENMP "use OpenMP threading" OFF)

if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING
"Choose the type of build, options are: PRODUCTION Debug Release."
Expand Down Expand Up @@ -34,7 +36,9 @@ endif()

find_package(HDF5 COMPONENTS C HL Fortran_HL REQUIRED)
find_package(NetCDF REQUIRED)
find_package(OpenMP)
if(OPENMP)
find_package(OpenMP)
endif()
find_package(MPI REQUIRED)
find_package(Jasper REQUIRED)
find_package(PNG REQUIRED)
Expand Down

0 comments on commit 8934efa

Please sign in to comment.