
Check for working Fortran compiler: /usr/bin/gfortran - works Check for working Fortran compiler: /usr/bin/gfortran Check for working C compiler: /usr/bin/cc - works Check for working C compiler: /usr/bin/cc Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ The Fortran compiler identification is GNU 9.4.0 The C compiler identification is GNU 9.4.0

DBUILD_DOCUMENTATION=ON -DBUILD_FASTFARM=ON -DBUILD_OPENFAST_SIMULINK_API=ON -DBUILD_TESTING=ON -DOPENMP=ONĪnd when I run it from the /build directory I have the following CLI output: - The CXX compiler identification is GNU 9.4.0 I have customized the cmake command a first time as follow: cmake. cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/g++ -I/home/bellenot/rootdev/test_cmake/SClock -I/home/bellenot/bin/root/v5-34-00-patches/include -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -O2 -g -DNDEBUG -o CMakeFiles/sclock.dir/ far I have used OpenFAST through an anaconda environment, but now I need to compile it from source on a Ubuntu 20.04 workstation, and am following the instruction on readthedocs (sections 2.2.1, 2.2.2, 2.2.4, 2.2.5). Building CXX object CMakeFiles/sclock.dir/ Make -f CMakeFiles/sclock.dir/build.make CMakeFiles/sclock.dir/build Make: Leaving directory `/home/bellenot/rootdev/test_cmake/SClock/build' home/bellenot/bin/root/v5-34-00-patches/bin/rootcint -cint -f sclockDict.cxx -c -I/home/bellenot/rootdev/test_cmake/SClock/inc -I/home/bellenot/rootdev/test_cmake/SClock -I/home/bellenot/bin/root/v5-34-00-patches/include TGShapedClock.h /home/bellenot/rootdev/test_cmake/SClock/LinkDef.hĬd /home/bellenot/rootdev/test_cmake/SClock/build & /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/bellenot/rootdev/test_cmake/SClock /home/bellenot/rootdev/test_cmake/SClock /home/bellenot/rootdev/test_cmake/SClock/build /home/bellenot/rootdev/test_cmake/SClock/build /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles/sclock.dir/DependInfo.cmake -color= Make -f CMakeFiles/sclock.dir/build.make CMakeFiles/sclock.dir/depend

Make: Entering directory `/home/bellenot/rootdev/test_cmake/SClock/build' usr/bin/cmake -E cmake_progress_start /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles/progress.marks usr/bin/cmake -S/home/bellenot/rootdev/test_cmake/SClock -B/home/bellenot/rootdev/test_cmake/SClock/build -check-build-system CMakeFiles/Makefile.cmake 0 Build files have been written to: build]$ make Compiler Flags: -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -O2 -g -DNDEBUG Performing Test CXX_HAS_Wno_deprecated_declarations - Success Performing Test CXX_HAS_Wno_deprecated_declarations Looking for pthread_create in pthread - found Looking for pthread_create in pthreads - not found Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Performing Test CMAKE_HAVE_LIBC_PTHREAD Performing Test CXX_HAS_Wno-strict-aliasing - Success Performing Test CXX_HAS_Wno-strict-aliasing Performing Test CXX_HAS_Wno-array-bounds - Success Performing Test CXX_HAS_Wno-array-bounds

Check for working CXX compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/g++ - works Check for working C compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/gcc - works Check for working C compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/gcc The CXX compiler identification is GNU 6.2.0 The C compiler identification is GNU 6.2.0 Set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $)Īnd the CMake configure/make result: build]$ cmake -DCMAKE_VERBOSE_MAKEFILE=ON. cosimoNigro/gLike/blob/cmake_build/CMakeLists.txt cmake_minimum_required(VERSION 3.0) I wrote a CMakeLists.txt file to build a project relying on ROOT, you can find it here (the project is in the same git repository). I am experiencing an issue with cmake’s find_package command when using two different ROOT versions.
