From f7ac439eb147e994b04767a661657fa86c423713 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Mon, 4 Nov 2019 13:41:36 -0700 Subject: [PATCH] CMake: Fix p3pgraph build with MSVC+Eigen --- panda/src/pgraph/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/pgraph/CMakeLists.txt b/panda/src/pgraph/CMakeLists.txt index 1852a7a15c..178623eb3d 100644 --- a/panda/src/pgraph/CMakeLists.txt +++ b/panda/src/pgraph/CMakeLists.txt @@ -230,6 +230,11 @@ add_component_library(p3pgraph SYMBOL BUILDING_PANDA_PGRAPH target_link_libraries(p3pgraph p3gobj p3event p3gsgbase p3putil p3linmath pandaexpress) target_interrogate(p3pgraph ALL EXTENSIONS ${P3PGRAPH_IGATEEXT}) +if(HAVE_EIGEN) + # Eigen puts this over the threshold where bigobj is needed on MSVC + set_target_properties(p3pgraph PROPERTIES MSVC_BIGOBJ ON) +endif() + if(NOT BUILD_METALIBS) install(TARGETS p3pgraph EXPORT Core COMPONENT Core