From 5efdac01c1b0c9c4eae48843dabf223191995513 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 9 Apr 2014 20:55:34 -0400 Subject: [PATCH] Fix MinGW OpenMP link error. --- pcbnew/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 90365cfb33..5cf723661c 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -397,6 +397,10 @@ if( KICAD_SCRIPTING_MODULES ) ) endif() + if( ${OPENMP_FOUND} ) + set_property( TARGET _pcbnew APPEND_STRING + PROPERTY LINK_FLAGS " ${OpenMP_CXX_FLAGS}" ) + endif() endif()