Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

CMake fixes

parent ec5ef8ae
......@@ -11,10 +11,10 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_SOURCE_D
find_package(GTKEngine)
find_package(Sass REQUIRED)
if(${CMAKE_VERSION} GREATER_EQUAL 3.12.0)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
else()
if(CMAKE_VERSION VERSION_LESS 3.12.0)
find_package(PythonInterp 3 REQUIRED)
else()
find_package(Python3 COMPONENTS Interpreter REQUIRED)
endif()
include(KDEInstallDirs)
......
#.rst:
# FindSass
# -----------
#
# Try to find Sass compiler.
#
# If the Sass compiler executable is not in your PATH, you can provide
# an alternative name or full path location with the ``Sass_EXECUTABLE`` variable.
# In this case, do not forget to set ``Sass_COMPILER_TYPE`` variable also.
#
# This will define the following variables:
#
# ``Sass_FOUND``
# True if sass is available.
#
# ``Sass_EXECUTABLE``
# The Sass compiler executable.
#
# ``Sass_COMPILER_TYPE``
# Sass compiler type: ``sass`` or ``sassc``.
#
# If ``Sass_FOUND`` is TRUE, it will also define the following imported
# target:
#
# ``Sass::Sass``
# The Sass compiler executable.
#
#=============================================================================
# Copyright 2018 Alexander Kernozhitsky <sh200105@mail.ru>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
set_package_properties(Sass PROPERTIES
DESCRIPTION "SASS compiler"
URL "https://sass-lang.com/"
......@@ -6,7 +61,9 @@ set_package_properties(Sass PROPERTIES
find_program(Sass_EXECUTABLE NAMES sassc)
if(Sass_EXECUTABLE)
set(Sass_COMPILER_TYPE sassc)
if(NOT Sass_COMPILER_TYPE)
set(Sass_COMPILER_TYPE sassc)
endif()
else()
find_program(Sass_EXECUTABLE NAMES sass)
set(Sass_COMPILER_TYPE sass)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment