def _configure_cmake(self):
    if (not self._cmake):
        self._check_dependencies()
        self._cmake = CMake(self)
        self._cmake.definitions['CONAN_INSTALL_FOLDER'] = self.install_folder
        if (self.settings.os != 'Windows'):
            if (not self.options.shared):
                self._cmake.definitions['SDL_STATIC_PIC'] = self.options.fPIC
        if ((self.settings.compiler == 'Visual Studio') and (not self.options.shared)):
            self._cmake.definitions['HAVE_LIBC'] = True
        self._cmake.definitions['SDL_SHARED'] = self.options.shared
        self._cmake.definitions['SDL_STATIC'] = (not self.options.shared)
        self._cmake.definitions['VIDEO_OPENGL'] = self.options.opengl
        self._cmake.definitions['VIDEO_OPENGLES'] = self.options.opengles
        self._cmake.definitions['VIDEO_VULKAN'] = self.options.vulkan
        if (self.settings.os == 'Linux'):
            self._cmake.definitions['SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS'] = 1
            self._cmake.definitions['ALSA'] = self.options.alsa
            if self.options.alsa:
                self._cmake.definitions['HAVE_ASOUNDLIB_H'] = True
                self._cmake.definitions['HAVE_LIBASOUND'] = True
            self._cmake.definitions['JACK'] = self.options.jack
            self._cmake.definitions['PULSEAUDIO'] = self.options.pulse
            self._cmake.definitions['SNDIO'] = self.options.sndio
            self._cmake.definitions['NAS'] = self.options.nas
            self._cmake.definitions['VIDEO_X11'] = self.options.x11
            if self.options.x11:
                self._cmake.definitions['HAVE_XEXT_H'] = True
            self._cmake.definitions['VIDEO_X11_XCURSOR'] = self.options.xcursor
            if self.options.xcursor:
                self._cmake.definitions['HAVE_XCURSOR_H'] = True
            self._cmake.definitions['VIDEO_X11_XINERAMA'] = self.options.xinerama
            if self.options.xinerama:
                self._cmake.definitions['HAVE_XINERAMA_H'] = True
            self._cmake.definitions['VIDEO_X11_XINPUT'] = self.options.xinput
            if self.options.xinput:
                self._cmake.definitions['HAVE_XINPUT_H'] = True
            self._cmake.definitions['VIDEO_X11_XRANDR'] = self.options.xrandr
            if self.options.xrandr:
                self._cmake.definitions['HAVE_XRANDR_H'] = True
            self._cmake.definitions['VIDEO_X11_XSCRNSAVER'] = self.options.xscrnsaver
            if self.options.xscrnsaver:
                self._cmake.definitions['HAVE_XSS_H'] = True
            self._cmake.definitions['VIDEO_X11_XSHAPE'] = self.options.xshape
            if self.options.xshape:
                self._cmake.definitions['HAVE_XSHAPE_H'] = True
            self._cmake.definitions['VIDEO_X11_XVM'] = self.options.xvm
            if self.options.xvm:
                self._cmake.definitions['HAVE_XF86VM_H'] = True
            self._cmake.definitions['VIDEO_WAYLAND'] = self.options.wayland
            self._cmake.definitions['VIDEO_DIRECTFB'] = self.options.directfb
            self._cmake.definitions['VIDEO_RPI'] = self.options.video_rpi
        elif (self.settings.os == 'Windows'):
            self._cmake.definitions['DIRECTX'] = self.options.directx
        self._cmake.definitions['HAVE_LIBUNWIND_H'] = self.options.get_safe('libunwind')
        self._cmake.configure(build_dir=self._build_subfolder)
    return self._cmake
def _configure_cmake(self):
    if (not self._cmake):
        self._check_dependencies()
        self._cmake = CMake(self)
        self._cmake.definitions['CONAN_INSTALL_FOLDER'] = self.install_folder
        if (self.settings.os != 'Windows'):
            if (not self.options.shared):
                self._cmake.definitions['SDL_STATIC_PIC'] = self.options.fPIC
        if ((self.settings.compiler == 'Visual Studio') and (not self.options.shared)):
            self._cmake.definitions['HAVE_LIBC'] = True
        self._cmake.definitions['SDL_SHARED'] = self.options.shared
        self._cmake.definitions['SDL_STATIC'] = (not self.options.shared)
        self._cmake.definitions['VIDEO_OPENGL'] = self.options.opengl
        self._cmake.definitions['VIDEO_OPENGLES'] = self.options.opengles
        self._cmake.definitions['VIDEO_VULKAN'] = self.options.vulkan
        if (self.settings.os == 'Linux'):
            self._cmake.definitions['SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS'] = 1
            self._cmake.definitions['ALSA'] = self.options.alsa
            if self.options.alsa:
                self._cmake.definitions['HAVE_ASOUNDLIB_H'] = True
                self._cmake.definitions['HAVE_LIBASOUND'] = True
            self._cmake.definitions['JACK'] = self.options.jack
            self._cmake.definitions['PULSEAUDIO'] = self.options.pulse
            self._cmake.definitions['SNDIO'] = self.options.sndio
            self._cmake.definitions['NAS'] = self.options.nas
            self._cmake.definitions['VIDEO_X11'] = self.options.x11
            if self.options.x11:
                self._cmake.definitions['HAVE_XEXT_H'] = True
            self._cmake.definitions['VIDEO_X11_XCURSOR'] = self.options.xcursor
            if self.options.xcursor:
                self._cmake.definitions['HAVE_XCURSOR_H'] = True
            self._cmake.definitions['VIDEO_X11_XINERAMA'] = self.options.xinerama
            if self.options.xinerama:
                self._cmake.definitions['HAVE_XINERAMA_H'] = True
            self._cmake.definitions['VIDEO_X11_XINPUT'] = self.options.xinput
            if self.options.xinput:
                self._cmake.definitions['HAVE_XINPUT_H'] = True
            self._cmake.definitions['VIDEO_X11_XRANDR'] = self.options.xrandr
            if self.options.xrandr:
                self._cmake.definitions['HAVE_XRANDR_H'] = True
            self._cmake.definitions['VIDEO_X11_XSCRNSAVER'] = self.options.xscrnsaver
            if self.options.xscrnsaver:
                self._cmake.definitions['HAVE_XSS_H'] = True
            self._cmake.definitions['VIDEO_X11_XSHAPE'] = self.options.xshape
            if self.options.xshape:
                self._cmake.definitions['HAVE_XSHAPE_H'] = True
            self._cmake.definitions['VIDEO_X11_XVM'] = self.options.xvm
            if self.options.xvm:
                self._cmake.definitions['HAVE_XF86VM_H'] = True
            self._cmake.definitions['VIDEO_WAYLAND'] = self.options.wayland
            self._cmake.definitions['VIDEO_DIRECTFB'] = self.options.directfb
            self._cmake.definitions['VIDEO_RPI'] = self.options.video_rpi
        elif (self.settings.os == 'Windows'):
            self._cmake.definitions['DIRECTX'] = self.options.directx
        self._cmake.definitions['HAVE_LIBUNWIND_H'] = self.options.get_safe('libunwind')
        self._cmake.configure(build_dir=self._build_subfolder)
    return self._cmake