From 92ee62168c6c5df3f2100c502870034cd67e63f7 Mon Sep 17 00:00:00 2001 From: ckaros Date: Tue, 2 Sep 2025 12:05:42 -0400 Subject: [PATCH] fix openmp linking on macos --- swmm-toolkit/extern/openmp.cmake | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/swmm-toolkit/extern/openmp.cmake b/swmm-toolkit/extern/openmp.cmake index 2df357fe..3e3dcb0a 100644 --- a/swmm-toolkit/extern/openmp.cmake +++ b/swmm-toolkit/extern/openmp.cmake @@ -65,6 +65,18 @@ FetchContent_MakeAvailable( OpenMP ) +set(OpenMP_AVAILABLE TRUE) + +set(OPENMP_INCLUDE_DIR + ${CMAKE_BINARY_DIR}/_deps/openmp-build/runtime/src +) + +target_include_directories( + omp + INTERFACE + ${OPENMP_INCLUDE_DIR} +) + target_compile_options( omp INTERFACE @@ -75,7 +87,7 @@ target_compile_options( target_link_directories( omp PUBLIC - $ + $ $ )