Skip to content

Conversation

@KrzysFR
Copy link

@KrzysFR KrzysFR commented Feb 2, 2021

This fixes a few of the warning that happen during the build inside Docker.

  • Disable building the documentation/html via sphinx.
  • Fix issues during linking by forcing all third party projects to use static linking. **
  • Remove some deprecated attributes in the Wix project

**: Fixing the static linking issues requires using a new CMAKE_MSVC_RUNTIME_LIBRARY property introduced in CMake 3.15 to help configure the runtime library setting in VS projects. The default value (when unset) is MultiThreadedDLL which correspond to dynamic runtime (/MD) but the rest of fdb is build with static linking (/MT). This causes issues with symbols during linking.

CMake requires explicitly selecting for a minimum version to enable this new feature, so requiring 3.13 will ignore this setting unfortunately.

Christophe Chevalier added 4 commits February 2, 2021 21:55
…ed runtime

- fix an issue when linking thirdparty and sqlite libraries that are build with /MD instead of /MT
- CMAKE_MSVC_RUNTIME_LIBRARY is a new feature of CMAKE that is instroduced in 3.15 hence need to up the minimum version
- This global property force all projects to build with /MT without needing to change the CXX_FLAGS
…ute on RegistryKey

- warning messages says it's safe to remove this attribute.
@KrzysFR KrzysFR changed the title Remote warnings during windows docker build Remove warnings during windows docker build Feb 2, 2021
@mpilman mpilman merged commit 14b2aca into mpilman:features/windows-docker Feb 2, 2021
mpilman pushed a commit that referenced this pull request Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants