Cleanup: quiet unused variable warnings in CMake

OpenMP_LIBRARIES was used when it wasn't defined.
This commit is contained in:
Campbell Barton
2023-11-10 09:15:05 +11:00
parent e317831a82
commit 4e6bca79cd
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ if(WITH_OPENSUBDIV)
${OPENSUBDIV_LIBRARIES}
)
if(WITH_OPENMP_STATIC)
if(WITH_OPENMP AND WITH_OPENMP_STATIC)
list(APPEND LIB
${OpenMP_LIBRARIES}
)