Skip to content

Commit 0f91fad

Browse files
committed
fix linker error when trying CPU_BASELINE=AVX
1 parent ce6b06e commit 0f91fad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/dnn/src/layers/layers_common.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
#include <opencv2/dnn.hpp>
4646
#include <opencv2/dnn/shape_utils.hpp>
4747

48+
#define CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY
4849
// dispatched AVX/AVX2 optimizations
4950
#include "layers/layers_common.simd.hpp"
5051
#include "layers/layers_common.simd_declarations.hpp"
52+
#undef CV_CPU_OPTIMIZATION_DECLARATIONS_ONLY
5153

5254
namespace cv
5355
{

0 commit comments

Comments
 (0)