No cmake compiller

I had CMake errors, while using obs and osc.

   53s] CMake Error in :
   53s]   No CMAKE_CXX_COMPILER could be found.
   53s]   Tell CMake where to find the compiler by setting either the environment
   53s]   variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
   53s]   to the compiler, or to the compiler name if it is in the PATH.
   53s] CMake Warning (dev) in CMakeLists.txt:
   53s]   No cmake_minimum_required command is present.  A line of code such as
   53s]     cmake_minimum_required(VERSION 3.0)
   53s]   should be added at the top of the file.  The version specified may be lower
   53s]   if you wish to support older CMake versions for this project.  For more
   53s]   information run "cmake --help-policy CMP0000".
   53s] This warning is for project developers.  Use -Wno-dev to suppress it.
   53s] -- Configuring incomplete, errors occurred!

Spec file is:

# spec file for package libgreattao2
# Copyright (c) 2015 Sławomir Lach <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           libgreattao2
Version:    1.98.0
Release:    2
License:    LGPL-3.0
BuildRequires:    openssl-devel SDL2_image-devel libsell-devel libnotify-devel glib2-devel cmake
Requires:       openssl SDL2_image libsell libnotify glib2
BuildRoot:      %{_tmppath}/libgreattao2-1.98.0
Summary:    Library to generating interfaces
Source:        libgreattao2-1.98.0.tar.gz    

Library responsible for interaction with user. It could works in one of three modes: shell, normal, network. In normal mode it could to load one of backend: GTK+, Qt or console. It also using xml-like files with rules to generate GUI/CUI.

%setup -q

make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/common
make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/GTK+
make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/console
mkdir -p Modules/QT5/src/build
cd Modules/QT5/src/build
cmake ..
make %{?_smp_mflags} INSTALLPATH=/usr/

mkdir -p ${RPM_BUILD_ROOT}/usr/share/tao-design
cp -r tao-design ${RPM_BUILD_ROOT}/usr/share
mkdir -p ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules
cp  Modules/tao-*.so.1.0 -t ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules
ln -fs ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules/
ln -fs ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules/
cp ${RPM_BUILD_ROOT}/usr/%_lib
ln -fs ${RPM_BUILD_ROOT}/usr/%_lib/
ln -fs ${RPM_BUILD_ROOT}/usr/%_lib/
mkdir -p ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/tao.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/config.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/network.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/log.h ${RPM_BUILD_ROOT}/usr/include/libgreattao

%dir %{_libdir}/mWidgets_modules
%dir /usr/share/tao-design



%package devel
Summary:  Development files for libgreattao
Requires:  %{name} = %{version}

%description devel
Development files for libgreattao\

%files devel
%dir %{_includedir}/libgreattao

%package module-gtk2
Summary:    Gtk+2 backend for libgreattao
Requires:  %{name}, gtk2
BuildRequires: gtk2-devel

%description module-gtk2
Backend for libgreattao, which could be used, when libgreattao working in normal mode

%files module-gtk2
%dir %{_libdir}/mWidgets_modules


%package module-qt4
Summary:    Qt4 backend for libgreattao
Requires:  %{name}, pkgconfig(Qt5Core), pkgconfig(Qt5Widget)

%description module-qt4
Backend for libgreattao, which could be used, when libgreattao working in normal mode

%files module-qt4
%dir %{_libdir}/mWidgets_modules

This means that cmake couldn’t find a C++ compiler.

Use the following in your spec file to get one installed in the build environment…

BuildRequires: gcc-c++