Summary: | Cmake script cannot recognize mingw | ||
---|---|---|---|
Product: | Eigen | Reporter: | Vasileios Anagnostopoulos <fithis2001> |
Component: | Core - general | Assignee: | Nobody <eigen.nobody> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | gael.guennebaud, jacob.benoit.1, jitseniesen |
Priority: | Normal | ||
Version: | 3.1 | ||
Hardware: | x86 - 32-bit | ||
OS: | Windows | ||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 387 |
Description
Vasileios Anagnostopoulos
2013-01-15 15:59:40 UTC
Looking at the cmake code, may it be a possibility that eigen_cxx_compiler_version_string is empty when ei_get_compilerver_from_cxx_version_string is called? Perhaps mingw does not include the "head" command? If I replace "head" by "hed", which is a non-existing command on my system, I get the same error message. I'm hoping that somebody with more cmake knowledge can fix this. What about replacing the head command that is not available with windows shell with this cmake command: string(REGEX REPLACE "[\n\r].*" "" eigen_cxx_compiler_version_string ${eigen_cxx_compiler_version_string}) Works for me on OSX/Linux. I guess we need somebody with mingw to test whether this really fixes the issue, though this seems a good idea anyway. works for us with mingw. I still kept the head command when this one is available, less risky. https://bitbucket.org/eigen/eigen/commits/6607f616792c/ Changeset: 6607f616792c User: ggael Date: 2013-06-18 17:25:37 Summary: Fix bug 542: fix detection of compiler version on systems without the head command. -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/542. |