cd
mkdir build cd build conan install .. --profile=conan_profile cmake .. make
| $toolchain=/opt/rh/devtoolset-7/root | |
| target_host=x86_64-redhat-linux | |
| cc_compiler=gcc | |
| cxx_compiler=g++ | |
| [env] | |
| CONAN_CMAKE_FIND_ROOT_PATH=$toolchain | |
| CHOST=$target_host | |
| AR=ar | |
| AS=as | |
| RANLIB=ranlib | |
| CC=$target_host-$cc_compiler | |
| CXX=$target_host-$cxx_compiler | |
| STRIP=$target_host-strip | |
| RC=$target_host-windres | |
| [settings] | |
| # We are building in redhat linux | |
| os_build=Linux | |
| arch_build=x86_64 | |
| os=Linux | |
| arch=x86_64 | |
| compiler=gcc | |
| compiler.version=7.3 | |
| compiler.libcxx=libstdc++11 | |
| build_type=Debug |
| set(CMAKE_SYSTEM_NAME ${CMAKE_HOST_SYSTEM_NAME}) | |
| set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR}) | |
| set(tools /opt/rh/devtoolset-7/root) | |
| set(CMAKE_SYSROOT ${tools}/root) | |
| set(CMAKE_C_COMPILER ${tools}/bin/gcc) | |
| set(CMAKE_CXX_COMPILER ${tools}/bin/g++) | |
| #set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | |
| #set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | |
| #set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | |
| #set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) |