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

This project does not use C++, so OpenMP_CXX_FOUND is always false #269

Open
DusanJovic-NOAA opened this issue Oct 11, 2024 · 0 comments · May be fixed by #276
Open

This project does not use C++, so OpenMP_CXX_FOUND is always false #269

DusanJovic-NOAA opened this issue Oct 11, 2024 · 0 comments · May be fixed by #276
Assignees
Labels
build Relates to the build system

Comments

@DusanJovic-NOAA
Copy link

122   if(OpenMP_CXX_FOUND)
123      target_link_libraries(MyTarget PUBLIC OpenMP::OpenMP_CXX)
124   endif()
125 #  if(OpenMP_Fortran_FOUND)
126 #     target_link_libraries(MyTarget PUBLIC OpenMP::OpenMP_Fortran)
127 #  endif()

First, the project does not use C++ so OpenMP_CXX_FOUND in always false, and second the MyTarget does not even exist in this project.

This block should be deleted from the top-level CMakeLists.txt.

@edwardhartnett edwardhartnett added the build Relates to the build system label Oct 12, 2024
@AlysonStahl-NOAA AlysonStahl-NOAA linked a pull request Oct 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Relates to the build system
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants