Manylinux toolchain: set MANYLINUX1/MANYLINUX2010 to TRUE

So that one can do `if (MANYLINUX1)` in CMake, just like it
is commonly done with e.g. `if (IOS)` or `if (MSVC)`.
This commit is contained in:
Jonas Vautherin
2019-06-12 02:52:42 +02:00
parent 6beb8209a7
commit d0d16e0a8b
4 changed files with 9 additions and 3 deletions

View File

@ -2,6 +2,8 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR i686)
set(MANYLINUX1 TRUE)
set(cross_triple "i686-linux-gnu")
set(CMAKE_C_COMPILER /opt/rh/devtoolset-2/root/usr/bin/gcc)