From 3b1eb44865c5ddff0f197bc70a3c00e44c42533d Mon Sep 17 00:00:00 2001 From: Gregory Bednov Date: Sun, 30 Aug 2026 14:44:28 +0300 Subject: [PATCH] CMakeLists.txt fix for OpenMP --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7bec1b..841569e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,13 +30,14 @@ target_link_libraries(OCCTSurfacer if(OpenMP_CXX_FOUND) - target_compile_options(OCCTSurfacer PUBLIC -Xpreprocessor -fopenmp) - target_link_libraries(OCCTSurfacer PUBLIC omp) + target_link_libraries(OCCTSurfacer PUBLIC OpenMP::OpenMP_CXX) target_compile_definitions(OCCTSurfacer PUBLIC ENABLE_OPENMP) else() message(WARNING "OpenMP not found. The program will be built without OpenMP support.") target_compile_definitions(OCCTSurfacer PUBLIC DISABLE_OPENMP) endif() +install(TARGETS OCCTSurfacer RUNTIME DESTINATION bin) + include(CTest) enable_testing() \ No newline at end of file