-
Notifications
You must be signed in to change notification settings - Fork 624
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
Adding both openexr and cuda to cmakelist compiles with an error #1897
Comments
I'm assuming the typos are not the source of your issue, and you've retyped some portion of your cmakelist.txt. some suggetions
also
Don't know if this will fix things, but a couple fo things to try. |
I apologize for the many spelling errors in my cmakelist file, which now reads as follows:
Then, when compiling, the error still occurs:
I checked the compilation directive as follows:
Also, I get the same error when using openVDB in a cuda project, which I assume is caused by openVDB's dependency on openEXR. |
I was hoping |
If I remove the '/EHsc' tag from the nvcc command and modify it as follows:
The error is eliminated at this point:
My guess is that openEXR imported the '/EHsc' command tag externally to cause the problem |
Good detective work! You are right. openexr/cmake/LibraryDefine.cmake Line 13 in b6fc6ec
It's hard to trace beyond this commit four years ago, but if I remember correctly, /EHsc used to generate measurably faster code in OpenEXR. Now that the core has been switched to C, I bet it is irrelevant. |
I'm using cmake as a configuration tool for my project, adding both openexr and cuda to cmakelist, and compiling with the error:
My cmakelist is as follows:
I searched for a similar example, see https://gitlab.kitware.com/cmake/cmake/-/issues/25565
The text was updated successfully, but these errors were encountered: