mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
cmake: Link Eigen3 only against targets needing it
This commit is contained in:
committed by
Andrej730
parent
9807c2bedf
commit
2e5d87b5d7
@@ -20,6 +20,8 @@ if(UNIX)
|
||||
find_package(Threads)
|
||||
endif()
|
||||
|
||||
find_package(Eigen3 REQUIRED)
|
||||
|
||||
if(WASM_BUILD)
|
||||
target_link_libraries(IfcGeom ${kernel_libraries} ${mapping_libraries} ${CMAKE_THREAD_LIBS_INIT} "Eigen3::Eigen")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user