sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
345 stars 37 forks source link

How to enable C++ 11 for correct build? #34

Closed alexandersolovyov closed 5 years ago

alexandersolovyov commented 5 years ago

How can I enable C++ 11 support for build? Is there a working version of commands cmake and/or make commands with options? I am trying to make RPM package for Rosa Linux R8, using cmake v3.5.2 and gcc v4.9.4. It seems, the simplest way is to edit CMakeLists.txt: change CMAKE_MINIMUM_REQUIRED(VERSION 2.6) to version 3.1, and add a string (that works only for cmake 3.1 and higher) after project's name and version definition

set(CMAKE_CXX_STANDARD 11)
zvezdochiot commented 5 years ago

@alexandersolovyov say> edit CMakeLists.txt

После того, как введено использование типа auto : https://github.com/ierton/xkb-switch/commit/514e42bfef54fd1e181e29d2d42bb1688b3462ee , я перестал доверять https://github.com/ierton/xkb-switch

См. альтернативы:

sergei-mironov commented 5 years ago

После того, как введено использование типа auto : 514e42b , я перестал доверять https://github.com/ierton/xkb-switch

См. альтернативы:

@zvezdochiot Please use English here

sergei-mironov commented 5 years ago

How can I enable C++ 11 support for build? Is there a working version of commands cmake and/or make commands with options? I am trying to make RPM package for Rosa Linux R8, using cmake v3.5.2 and gcc v4.9.4. It seems, the simplest way is to edit CMakeLists.txt: change CMAKE_MINIMUM_REQUIRED(VERSION 2.6) to version 3.1, and add a string (that works only for cmake 3.1 and higher) after project's name and version definition

set(CMAKE_CXX_STANDARD 11)

Looks like C++11 is really not needed in this project so I'm attempting to get rid of it. Could you please re-try the packaging with HEAD (v1.5.1)?

sergei-mironov commented 5 years ago
alexandersolovyov commented 5 years ago

Now compiling without switching to С++ 11. Good, issue closed.

alexandersolovyov commented 5 years ago

Didn't check 1.5.1. It worked when I tried version 1.5.3.