Merge pull request 'Bug in CMakeLists.txt' (#37) from cmake/bug-fix into main
This commit is contained in:
commit
6f3b03bcb5
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ message(STATUS "Compiling with C++ standard: ${CMAKE_CXX_STANDARD}")
|
||||||
# Check if the OpenMP package is available for the current #
|
# Check if the OpenMP package is available for the current #
|
||||||
# setup and set the appropriate C/C++ flags. #
|
# 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")
|
message(STATUS "Enable OpenMP parallelization")
|
||||||
find_package(OpenMP)
|
find_package(OpenMP)
|
||||||
if (OPENMP_FOUND)
|
if (OPENMP_FOUND)
|
||||||
|
|
Loading…
Reference in a new issue