Skip to content

Conversation

@markrtuttle
Copy link
Collaborator

Make cmake use native path separators in cat commands so that the cmake build will work from the Visual Studio command prompt.

I'd like cbmc to build on windows in the native build environment with minimal dependency on external tools, eg requiring chocolatey and cygwin, etc. Visual Studio comes with cmake and ninja, and Visual Studio can be installed with git, which will give you access to git bash and all the bash shell tools you might need.

My method is

  • Install Visual Studio Community 2019
    • Desktop development with C++
    • Individual components -> Code tools -> Git for windows, Git extension for Visual Studio
  • Open x64 Native Tools Command Prompt for VS 2019
  • PATH="c:\Program Files\Git\usr\bin";%PATH%
  • curl -L https://downloads.sourceforge.net/project/winflexbison/win_flex_bison-latest.zip > bison.zip
  • unzip bison.zip
  • cmake -S. -Bbuild -GNinja
  • cmake --build build

@tautschnig
Copy link
Collaborator

As stated in #5306, I'd prefer to get rid of the need of cat. I've implemented #5314 to accomplish this.

@markrtuttle
Copy link
Collaborator Author

Closing in favor of #5314

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