diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 255875c3b..3ec7e38ad 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1193,7 +1193,7 @@ set (PCH_SOURCES utility/nodebuilder/nodebuild_utility.cpp ) -if( ZMUSIC_SYSTEM_INSTALL ) +if( ZMUSIC_SYSTEM_INSTALL OR BUILD_SHARED_LIBS) set ( PCH_SOURCES ${PCH_SOURCES} common/utility/i_module.cpp ) endif()