Эх сурвалжийг харах

Fixed explicit instantiation problem when compiling as header-only.

Former-commit-id: 29988581a5629d0a4d42e4c2bf095b09c202e1ed
Victor-Nicolae Savu 11 жил өмнө
parent
commit
87bf7f0ae2

+ 2 - 0
include/igl/svd3x3/svd3x3_avx.cpp

@@ -99,8 +99,10 @@ IGL_INLINE void igl::svd3x3_avx(
 }
 #pragma runtime_checks( "u", restore )
 
+#ifdef IGL_STATIC_LIBRARY
 // forced instantiation
 template void igl::svd3x3_avx(const Eigen::Matrix<float, 3*8, 3>& A, Eigen::Matrix<float, 3*8, 3> &U, Eigen::Matrix<float, 3*8, 1> &S, Eigen::Matrix<float, 3*8, 3>&V);
 // doesn't even make sense with double because the wunder-SVD code is only single precision anyway...
 template void igl::svd3x3_avx<float>(Eigen::Matrix<float, 24, 3, 0, 24, 3> const&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&, Eigen::Matrix<float, 24, 1, 0, 24, 1>&, Eigen::Matrix<float, 24, 3, 0, 24, 3>&);
 #endif
+#endif