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

[BUILD] #1943

Open
neross666 opened this issue Oct 24, 2024 · 0 comments
Open

[BUILD] #1943

neross666 opened this issue Oct 24, 2024 · 0 comments

Comments

@neross666
Copy link

neross666 commented Oct 24, 2024

Environment

Operating System: Windows 10
Version / Commit SHA:
CMake Version: 3.20
Compiler: msvc 2019 nvcc

Describe the problem

My project requires the use of cuda, using vcpkg as the C++ package manager. After configuring cuda and openVDB in my cmakelist file, I compile the project. The message “nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified”. If I remove openVDB, there is no error. I did some searching and suspect that openVDB is propagating the /EHsc compilation flag to my project.

To Reproduce

Steps to reproduce the behavior:

  1. my cmakelist:
enable_language(CUDA)
...
find_package(CUDAToolkit REQUIRED)
find_package(OpenVDB REQUIRED)
...
target_link_libraries(my_target
CUDA::cudart
OpenVDB::openvdb
)
  1. Run CMake
  2. Build
  3. See error:
"nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified"

Additional context

I searched for a similar example, see https://gitlab.kitware.com/cmake/cmake/-/issues/25565

I found out that there is an openexr that openvdb depends on that is causing this problem, but don't know how to fix it

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

No branches or pull requests

1 participant