diff --git a/client/Windows/CMakeLists.txt b/client/Windows/CMakeLists.txt index afee89283..aef68b16d 100644 --- a/client/Windows/CMakeLists.txt +++ b/client/Windows/CMakeLists.txt @@ -40,7 +40,7 @@ set(${MODULE_PREFIX}_SRCS # On windows create dll version information. # Vendor, product and year are already set in top level CMakeLists.txt -if (WIN32) +if (WIN32 AND BUILD_SHARED_LIBS) set (RC_VERSION_MAJOR ${FREERDP_VERSION_MAJOR}) set (RC_VERSION_MINOR ${FREERDP_VERSION_MINOR}) set (RC_VERSION_BUILD ${FREERDP_VERSION_REVISION}) diff --git a/client/common/CMakeLists.txt b/client/common/CMakeLists.txt index c4e887f66..221de1b16 100644 --- a/client/common/CMakeLists.txt +++ b/client/common/CMakeLists.txt @@ -44,7 +44,7 @@ endif() # On windows create dll version information. # Vendor, product and year are already set in top level CMakeLists.txt -if (WIN32) +if (WIN32 AND BUILD_SHARED_LIBS) set (RC_VERSION_MAJOR ${FREERDP_VERSION_MAJOR}) set (RC_VERSION_MINOR ${FREERDP_VERSION_MINOR}) set (RC_VERSION_BUILD ${FREERDP_VERSION_REVISION})