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

Cmake build helper + Intel Fortran #5216

Closed
kylemacfarlan opened this issue May 25, 2019 · 2 comments · Fixed by #5220
Closed

Cmake build helper + Intel Fortran #5216

kylemacfarlan opened this issue May 25, 2019 · 2 comments · Fixed by #5220

Comments

@kylemacfarlan
Copy link

kylemacfarlan commented May 25, 2019

This is similar to #2747, but there isn't as elegant a workaround, so I thought it was worth opening an issue.

Intel fortran doesn't understand the verbosity command, and it causes the build to fail.
The workaround I came up with is this:

    cmake = CMake(self, parallel=False)
    command_line = cmake.command_line
    command_line.replace("/verbosity:%s" % cmake.msbuild_verbosity, "", 1)
    self.run('cmake "%s" %s' % (self.source_folder, command_line))
    self.run('cmake --build . %s' % cmake.build_config)`

Unlike #2747, no value that I pass to the msbuild_verbosity argument in the CMake constructor will prevent the command from being issued. It would be nice if there was some way to just remove the "/verbosity: ... " command from being issued at all.

@lasote
Copy link
Contributor

lasote commented May 25, 2019

Let's try to fix it for the next release.

@memsharded
Copy link
Member

Fixed, now CMake(...., msbuild_verbosity=None) will completely remove the flag.

Will be released next Conan 1.16, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants