google / google/or-tools

cmake(MSVC): building ortools_full.lib is not working in Debug

Open
#3,822 4 comments 2 reactions 1 assignee Claimed by @Mizux View on GitHub
Bug Build: CMake Lang: C++ OS: Windows
Dominant language
C++
Stars
14.1k
Forks
2.5k
Avg merge
8h 39m
Merged PRs (30d)
72

Description

As spotted by user the cmake/bundle-install.cmake.in is not working in config Debug since we don't take into account the variable `CMAKE_DEBUG_POSTFIX`.

here we should add few wildcard (or better use `${CMAKE_DEBUG_POSTFIX}`) to find the correct static lib dependencies
https://github.com/google/or-tools/blob/a8346044239357a1e3dd4b321d38f2098c9ac14b/cmake/bundle-install.cmake.in#L16-L38

Todo:
* [ ] Fix debug postfix managment
* [ ] Add ci job to test it

ref: https://cmake.org/cmake/help/latest/variable/CMAKE_CONFIG_POSTFIX.html#variable:CMAKE_%3CCONFIG%3E_POSTFIX

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.