Skip to content

[WIP][#5543 toolchain only] Fix library linkage (internal&external)#6555

Closed
Neumann-A wants to merge 10 commits intomicrosoft:masterfrom
Neumann-A:fix_vcpkg_linkage_clean
Closed

[WIP][#5543 toolchain only] Fix library linkage (internal&external)#6555
Neumann-A wants to merge 10 commits intomicrosoft:masterfrom
Neumann-A:fix_vcpkg_linkage_clean

Conversation

@Neumann-A
Copy link
Contributor

Same as #5543 but only the toolchain changes without all the other port changes. The port changes are probably no longer required because I added the possibilities for find_library to add common debug suffixes to the searched library name (which also helps with future CMakes find_package Module updates).

fixing library linkage for internal and external uses for single and multi config generators

  • split function code from toolchain into seperate files
  • split also some other code from the toolchain file into seperate files
  • added override for find_library (also added the search for common debug suffixes in the library name)
  • added override for set_target_properties (because some imported targets dont like generator expressions in IMPORT_LOCATION)
  • added recursion guards since the overwrite of cmake internal functions is not really a supported feature
  • added vcpkg_ to counter the above and added extra options to disable the override of the cmake functions
  • extend logic in find_package override(properly not required anymore and find_library handles all the cases!)
  • made all internal&external wrong linkage cases FATAL_ERRORs. Can be descalted via an option.

Neumann-A added 3 commits May 26, 2019 00:27
…multi config generators

split function code from toolchain into seperate files
split also some other code from the toolchain file into seperate files
added override for find_library
added override for set_target_properties (because some imported targets dont like generator expressions in IMPORT_LOCATION)
added recursion guards since the overwrite of cmake internal functions is not really a supported feature
added vcpkg_<cmakefunction> to counter the above and added extra options to disable the override of the cmake functions
extend logic in find_package override(properly not required anymore and find_library handles all the cases!)
@Neumann-A Neumann-A force-pushed the fix_vcpkg_linkage_clean branch from e2e9202 to cae11b1 Compare May 25, 2019 22:29
@Neumann-A
Copy link
Contributor Author

Can somebody run a full CI build with this PR? I am currently searching regressions and I do not know where to look anymore because so many fixes have been merged ;)

@Neumann-A Neumann-A closed this Jun 21, 2019
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.

1 participant