diff --git a/panda/src/framework/CMakeLists.txt b/panda/src/framework/CMakeLists.txt index 38e79dbd32..1863f00ff0 100644 --- a/panda/src/framework/CMakeLists.txt +++ b/panda/src/framework/CMakeLists.txt @@ -12,7 +12,7 @@ set(P3FRAMEWORK_SOURCES set(P3FRAMEWORK_LINK_TARGETS p3char p3pgui p3recorder p3collide p3pnmimagetypes) -if(LINK_ALL_STATIC) +if(NOT BUILD_SHARED_LIBS) # If we're statically linking, we need to explicitly link with # at least one of the available renderers. if(HAVE_GL)