-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add support for Windows (Visual Studio) in the cmake infrastructure #1088
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
Add support for Windows (Visual Studio) in the cmake infrastructure #1088
Conversation
bellenot
commented
Oct 2, 2017
- Add missing includes (gdk/glib) for TGWin32 dictionary generation
- Replace use of bindexplib by CMake's built-in WINDOWS_EXPORT_ALL_SYMBOLS property
- Replace old nmake based build by the CMake based one for builtin_freetype and builtin_pcre
- Add support for Visual Studio for LZ4
- Fix compilation of builtin_afterimage
- Add a few missing compilation flags
- Filter out the multiproc sub-directory (not supported on Windows)
- Add missing includes (gdk/glib) for TGWin32 dictionary generation - Replace use of bindexplib by CMake's built-in WINDOWS_EXPORT_ALL_SYMBOLS property - Replace old nmake based build by the CMake based one for builtin_freetype and builtin_pcre - Add support for Visual Studio for LZ4 - Fix compilation of builtin_afterimage - Add a few missing compilation flags - Filter out the multiproc sub-directory
|
Starting build on |
|
Build failed on centos7/gcc49. |
|
Build failed on slc6/gcc49. |
|
Build failed on slc6/gcc62. |
CMakeLists.txt
Outdated
| set(__allIncludes ${__allIncludes} -I${d}) | ||
| endif() | ||
| endforeach() | ||
| if(MSVC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe if (WIN32) makes more sense here in case one uses a different compiler on Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree for this one (sometimes it's really compiler dependent)
| file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/include" NATIVE_INCLUDEDIR) | ||
| ExternalProject_Add( | ||
| LZ4 | ||
| URL http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/lz4-${lz4_version}.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's worth to avoid duplication of URL and MD5 hash. How about
set(LZ4_URL ${lcgpackages}/lz4-${lz4_version}.tar.gz)
set(LZ4_MD5 c9610c5ce97eb431dddddf0073d919b9)and then use the variables in both branches? That way we only have one place to update if something changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks! Will do it
|
@phsft-bot build Relaunching now that externals are fixed. |
|
Starting build on |
|
Build failed on slc6/gcc49. |
|
Build failed on slc6/gcc62. |
…d5 for LZ4 (thanks Guilherme for the feedback)
|
Starting build on |
|
Build failed on slc6/gcc62. Errors:
|
|
Build failed on slc6/gcc49. Errors:
|
|
@phsft-bot build |
|
Starting build on |
|
Build failed on slc6/gcc49. Failing tests: |
|
Build failed on mac1012/native. Failing tests: |
|
@phsft-bot build |
|
Starting build on |
|
Build failed on ubuntu14/native. Warnings:
And 24 more Failing tests: |
|
Build failed on mac1012/native. Failing tests: |
|
@bellenot Is this ready to be merged? The tests failures are fixed on master now, and are not related to this PR. |
|
@amadio yes, from my side, it can be merged... |