Environment
- CMake Version: 3.24+
- Генератор: Visual Studio 16 2019 (Multi -Config)
- Платформа: Windows 10
- Команда сборки: cmake -dcmake_build_type = release -b build.
/> Когда я настраиваю свой проект, вывод отладки показывает: < /p>
Код: Выделить всё
-- Generator: Visual Studio 16 2019
-- Build Type: 'Release'
-- Config Types: Debug;Release;MinSizeRel;RelWithDebInfo
-- IMPORTED_LOCATION (generic): IMPORTED_LOCATION-NOTFOUND
-- IMPORTED_LOCATION_DEBUG: C:/Program Files/Container/bin/Containerd.dll
-- IMPORTED_LOCATION_RELEASE: C:/Program Files/Container/bin/Container.dll
-- IMPORTED_CONFIGURATIONS: DEBUG;RELEASE
-- LOCATION property: C:/Program Files/Container/bin/Containerd.dll
Подробнее здесь: [url]https://stackoverflow.com/questions/79664112/cmake-imported-target-always-uses-debug-configuration-despite-correct-multi-conf[/url]