CMakePP / CMakePPLang

Object-oriented extension to the CMake language.
http://cmakepp.github.io/CMakePPLang/
Apache License 2.0
11 stars 4 forks source link

Invalid codepath for cpp_map(UPDATE) #124

Open AutonomicPerfectionist opened 10 months ago

AutonomicPerfectionist commented 10 months ago

Describe the bug Calling cpp_map(UPDATE) results in a call to cpp_map_update(), which is not a function. The correct function appears to be cpp_map_merge(), in which case the top-level subcommand should be renamed to match.

See: https://github.com/CMakePP/CMakePPLang/blob/ea8a0212581757077edb29f864662c632f0fedcb/cmake/cmakepp_lang/map/map.cmake#L82-L83

Introduced by #22. Tests only test the discrete cpp_map_merge() function and do not test that the top-level command delegates to it correctly.