Minor cleanup on HandleEigen.cmake

release/4.3a0
Lawrence Ibarria 2023-02-12 13:39:39 -08:00
parent 1bed89e942
commit 5347d205e8
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ else()
endif ()
if (MSVC)
if (GTSAM_LIBRARY_TYPE STREQUAL "SHARED")
if (GTSAM_SHARED_LIB)
# mute eigen static assert to avoid errors in shared lib
list_append_cache(GTSAM_COMPILE_DEFINITIONS_PUBLIC EIGEN_NO_STATIC_ASSERT)
endif()