Closed davidsulonabm closed 5 months ago
Its tied to the compiler, and you are supposed to use a compiler such as the one provided by the cxx-compiler package, and with this one installed it works:
The following packages will be downloaded:
package | build
---------------------------|-----------------
binutils-2.40 | h4852527_7 31 KB conda-forge
binutils_impl_linux-64-2.40| hf600244_0 5.2 MB conda-forge
binutils_linux-64-2.40 | hb3c18ed_9 29 KB conda-forge
c-compiler-1.7.0 | hd590300_1 6 KB conda-forge
cxx-compiler-1.7.0 | h00ab1b0_1 6 KB conda-forge
gcc-12.3.0 | h915e2ae_13 49 KB conda-forge
gcc_impl_linux-64-12.3.0 | h58ffeeb_13 57.6 MB conda-forge
gcc_linux-64-12.3.0 | h9528a6a_9 31 KB conda-forge
gxx-12.3.0 | h915e2ae_13 49 KB conda-forge
gxx_impl_linux-64-12.3.0 | h2a574ab_13 12.4 MB conda-forge
gxx_linux-64-12.3.0 | ha28b414_9 29 KB conda-forge
kernel-headers_linux-64-2.6.32| he073ed8_17 694 KB conda-forge
libgcc-devel_linux-64-12.3.0| h6b66f73_113 2.4 MB conda-forge
libsanitizer-12.3.0 | hb8811af_13 3.7 MB conda-forge
libstdcxx-devel_linux-64-12.3.0| h6b66f73_113 11.4 MB conda-forge
make-4.3 | hd18ef5c_1 507 KB conda-forge
sysroot_linux-64-2.12 | he073ed8_17 14.4 MB conda-forge
...
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 12.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/conda/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/conda/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
Solution to issue cannot be found in the documentation.
Issue
I am trying to link a project to the installed sundials library. Using
find_package(SUNDIALS REQUIRED)
in myCMakeLists.txt
yields the following error (note I do not have OpenMP installed):I may be missing something, but since
ENABLE_OPENMP
is turned on for non-Mac builds, should it perhaps be listed as a dependency?Installed packages
Environment info