Skip to content

Fix DLL symbol name pre/postfixing in CMake builds on Windows #5191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

Harishmcw
Copy link
Contributor

This PR is related to #5190, which supersedes #5188. However, the CMake changes from 5188 were not included in 5190. This PR ensures those missing changes are applied.

It modifies the CMake script to correctly handle symbol pre/post fixing for CMake builds.

Additionally, I have commented out #if (${REMOVE_STATIC_LIB}) as it was causing build errors. The REMOVE_STATIC_LIB variable is intended to control the removal of the static library, but it is not defined anywhere in the file, leading to build failures.

@Harishmcw Harishmcw changed the title DLL symbol pre/postfixing in CMake builds Fix DLL symbol pre/postfixing in CMake builds Mar 26, 2025
@Harishmcw Harishmcw changed the title Fix DLL symbol pre/postfixing in CMake builds Fix DLL symbol name pre/postfixing in CMake builds on Windows Mar 26, 2025
@martin-frbg
Copy link
Collaborator

I can only assume that your force-push on the other PR triggered some unexpected behavior in git, as the CMakeLists change was still visible in the web interface when I triggered the merge. I'll add proper initialization of the REMOVE_STATIC_LIB variable later (indeed my draft PR only had it defined inside the conditional)

@martin-frbg martin-frbg added this to the 0.3.30 milestone Mar 26, 2025
@martin-frbg martin-frbg merged commit 72f0abe into OpenMathLib:develop Mar 26, 2025
86 checks passed
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.

2 participants