Skip to content
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

no antlr rebuild for debug / release switching in Visual Studio #174

Open
Deakon997 opened this issue Aug 28, 2022 · 2 comments
Open

no antlr rebuild for debug / release switching in Visual Studio #174

Deakon997 opened this issue Aug 28, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Deakon997
Copy link
Collaborator

Describe the bug
When switch the build type from release to debug or back in Visual Studio then antlr does not rebuild for the selected build type causing the build to fail. To solve this one has to

  • rebuild the entire solution (taking a long time) or
  • rebuild antlr manually (which is ok)

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Configure and generate with cmake-gui for Visual Studio
  3. Compile the solution (default is debug)
  4. Switch to release
  5. Compile the solution
  6. See that linking fails

Expected behavior
antlr should be rebuild automatically.

Desktop (please complete the following information):

  • OS: Windows 10 / 11
  • IDE: Visual Studio 2022
@Deakon997 Deakon997 added the bug Something isn't working label Aug 28, 2022
@Deakon997 Deakon997 self-assigned this Aug 28, 2022
@ZhimingWu89
Copy link

@Deakon997 Maybe it's related to the issue I was dealing with.
It seems this line unset(CMAKE_BUILD_TYPE CACHE) unset the CMAKE_BUILD_TYPE in the whole CMake environment and will affect the following configuration, if this parameter is used further in other libraries.
If the library is built as standalone library, there is no problem. It happens when I tried to integrate the library into the project.

@Deakon997
Copy link
Collaborator Author

@ZhimingWu89 thank you for the hint.
I currently and will be back at the office on Monday to investigate the issue and check if I can properly fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants