Merge pull request 'Bug in CMakeLists.txt' (#37) from cmake/bug-fix into main

This commit is contained in:
Patrick Vogler 2024-07-02 10:07:58 +02:00
commit 6f3b03bcb5
Signed by: Patrick Vogler
GPG key ID: 5536B08CE82E8509

View file

@ -131,7 +131,7 @@ message(STATUS "Compiling with C++ standard: ${CMAKE_CXX_STANDARD}")
# Check if the OpenMP package is available for the current #
# setup and set the appropriate C/C++ flags. #
#----------------------------------------------------------#
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR ${OMP})
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR "${OMP}")
message(STATUS "Enable OpenMP parallelization")
find_package(OpenMP)
if (OPENMP_FOUND)