Skip to content

Commit

Permalink
Revert "Conditionally use openmp for ConvertInputFormat (allow turnin…
Browse files Browse the repository at this point in the history
…g it off...)"

This reverts commit 6e69a9e.
  • Loading branch information
jmarrec committed Mar 28, 2024
1 parent b826be0 commit d6d38c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/ConvertInputFormat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ endif()

# Detect OpenMP support in a compiler. If the compiler supports OpenMP, the
# flags to compile with OpenMP are returned and added.
if (${USE_OpenMP} OR ${ENABLE_OPENMP})
find_package(OpenMP COMPONENTS CXX)
if(OpenMP_CXX_FOUND)
set(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE PARENT_SCOPE)
target_link_libraries(ConvertInputFormat PRIVATE OpenMP::OpenMP_CXX)
endif()
find_package(OpenMP COMPONENTS CXX)
if(OpenMP_CXX_FOUND)
set(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE PARENT_SCOPE)
target_link_libraries(ConvertInputFormat PRIVATE OpenMP::OpenMP_CXX)
endif()

target_link_libraries(ConvertInputFormat PRIVATE energyplusparser project_options project_warnings)
Expand Down

0 comments on commit d6d38c7

Please sign in to comment.