@@ -171,7 +171,7 @@ if(ENABLE_USE_EIGEN)
171171 message (STATUS "Using Eigen3 & Spectra for CSymmetricMatrix::GetEigen." )
172172 find_package (Eigen3 REQUIRED)
173173 find_package (spectra REQUIRED)
174- target_link_libraries (${PROJECT_NAME} PRIVATE Eigen3::Eigen Spectra::Spectra)
174+ target_link_libraries (${PROJECT_NAME} PUBLIC Eigen3::Eigen Spectra::Spectra)
175175 target_compile_definitions (${PROJECT_NAME} PRIVATE UVATLAS_USE_EIGEN)
176176endif ()
177177
@@ -254,7 +254,7 @@ if(BUILD_TOOLS AND WIN32)
254254 UVAtlasTool/Mesh.h
255255 UVAtlasTool/MeshOBJ.cpp
256256 UVAtlasTool/SDKMesh.h)
257- target_link_libraries (uvatlastool
257+ target_link_libraries (uvatlastoolPRIVATE
258258${PROJECT_NAME}
259259 ole32.libversion .lib
260260 Microsoft::DirectXMesh
@@ -263,11 +263,11 @@ if(BUILD_TOOLS AND WIN32)
263263 source_group (uvatlastoolREGULAR_EXPRESSION UVAtlasTool/*.*)
264264
265265 if (UVATLAS_USE_OPENMP)
266- target_link_libraries (uvatlastool OpenMP::OpenMP_CXX)
266+ target_link_libraries (uvatlastoolPRIVATE OpenMP::OpenMP_CXX)
267267 endif ()
268268
269269 if (directxmath_FOUND)
270- target_link_libraries (uvatlastool Microsoft::DirectXMath)
270+ target_link_libraries (uvatlastoolPRIVATE Microsoft::DirectXMath)
271271 endif ()
272272endif ()
273273