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

Fix/msvc_compilation #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

radekd91
Copy link

@radekd91 radekd91 commented Apr 9, 2020

This PR enables installation of this package on Windows using MSVC compiler.

This involves two things:

  1. modification of the destination folder of setup.py into which CGAL will get unzipped, because MSVC expects it in a slightly different location
  2. modfiication of visibility.cpp to prevent linker errors on MSVC

The changes should not affect compilation on Linux and MacOS at all.

Copy link
Member

@jcpassy jcpassy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @coloss ,
the Windows build works great, thanks. However, some unit tests seem to be failing. Could you please address these? Once it has been done and the README updated, we will be happy to accept the PR. Cheers!


The makefile will not work on Windows with MSVC. Not tested with neither CygWin nor MinGw. Execute the following instead:
```
python setup.py install boost-location=<path_to_your_boost>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hyphens before the argument are missing.

```
python setup.py install boost-location=<path_to_your_boost>
```

Testing
-------

Copy link
Member

@jcpassy jcpassy May 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add instructions on how to run the tests and build the documentation on Windows.

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.

None yet

2 participants