-
Notifications
You must be signed in to change notification settings - Fork 151
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 couldn't find OpenMp #1231
Labels
question
Further information is requested
Comments
cmastalli
added
question
Further information is requested
and removed
bug
Something isn't working
labels
Mar 20, 2024
The issue appears when installing cmake v3.23. Please do: conda remove cmake==3.23
conda install cmake @nim65s is this expected to have a broken compilation with cmake v3.23? |
In my tests, this works for CMake 3.14 to 3.18, is broken from 3.20 to 3.25, and works again since 3.26. |
Should this issue moved to https://github.com/jrl-umi3218/jrl-cmakemodules/tree/59a8466a1143e2719b598b55d92a09d653628959? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Hello,
I encountered the following error when trying to build and install crocoddyl with multi-threading from source in a Conda environment.
After running
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_MULTITHREADS=ON
I got:
CMake Error at cmake/find-external/OpenMP/FindOpenMP.cmake:222 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): cmake/find-external/OpenMP/FindOpenMP.cmake:549 (_openmp_get_flags) CMakeLists.txt:165 (find_package)
Reproduction steps
Upon creating a new Conda environment and activate
System
It appears to me that CMake somehow couldn't find the installed OpenMp, but I have no clue how to fix it - even if I manually set CMAKE_MODULE_PATH, CMAKE_C_COMPILER, CMAKE_CPP_COMPILER, cmake still unable to find the OpenMp.
I appreciate your help.
Thanks!
The text was updated successfully, but these errors were encountered: