![]() s build_type=Debug -s compiler.libcxx=libc++ -s cppstd=20 -install-folder=cmake-build-debug -build missing This should output:Ĭonan-i20: aliased to conan install. ![]() Restart your terminal and run “where conan-i20” to verify that the aliases were added. Run “ls -al” to view all files including hidden ones. This file is hidden in your home directory. Your shell profile may be under the name of “.zprofile” if using zsh or “.bash_profile” if using bash. For older versions, use “compiler.libcxx=libstdc++”. From Xcode/clang 10, apple requires that to use “libc++” as the CPP library flag. This will add aliases for installing Conan packages in debug and release modes for C++11, 14, 17, and 20. s build_type=Release -s compiler.libcxx=libc++ -s cppstd=11 -install-folder=cmake-build-release -build missing' s build_type=Release -s compiler.libcxx=libc++ -s cppstd=14 -install-folder=cmake-build-release -build missing'Īlias conan-ir11='conan install. s build_type=Release -s compiler.libcxx=libc++ -s cppstd=17 -install-folder=cmake-build-release -build missing'Īlias conan-ir14='conan install. s build_type=Release -s compiler.libcxx=libc++ -s cppstd=20 -install-folder=cmake-build-release -build missing'Īlias conan-ir17='conan install. s build_type=Debug -s compiler.libcxx=libc++ -s cppstd=11 -install-folder=cmake-build-debug -build missing'Īlias conan-ir20='conan install. s build_type=Debug -s compiler.libcxx=libc++ -s cppstd=14 -install-folder=cmake-build-debug -build missing'Īlias conan-i11='conan install. s build_type=Debug -s compiler.libcxx=libc++ -s cppstd=17 -install-folder=cmake-build-debug -build missing'Īlias conan-i14='conan install. s build_type=Debug -s compiler.libcxx=libc++ -s cppstd=20 -install-folder=cmake-build-debug -build missing'Īlias conan-i17='conan install. Go back to your terminal and add the following to your shell profile: alias conan-i20='conan install. ![]() Step 3: Create aliases for installing Conan packages to avoid typing long phrases. Open CLion and click on the CLion icon in the top-left corner and go to preferences > plugins. This will install Conan globally on your machine. Open your terminal and run: sudo pip install conan Feel free to use whichever C++ standard you want. ![]() In this tutorial, we will be using the C++20 standard and the boost library. ![]()
0 Comments
Leave a Reply. |