e0590a0b56
kf6-kcoreaddons 6.28.0 requires ECM >= 6.28.0 but the vendored ECM source/ was still 6.10.0: the sync engine skipped it because ECM's version marker is a bare set(VERSION "X.Y.Z") that the parser didn't recognize (only KF_VERSION / PROJECT_VERSION / RELEASE_SERVICE_VERSION). Re-lay ECM from its 6.28.0 source.tar (pure cmake modules, no Redox port) and teach both the sync engine and the validator to read set(VERSION) so this class is caught, not silently skipped.
33 lines
984 B
CMake
33 lines
984 B
CMake
# SPDX-FileCopyrightText: 2012 Stephen Kelly <steveire@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#[=======================================================================[.rst:
|
|
ECMMarkNonGuiExecutable
|
|
-----------------------
|
|
|
|
Marks an executable target as not being a GUI application.
|
|
|
|
::
|
|
|
|
ecm_mark_nongui_executable(<target1> [<target2> [...]])
|
|
|
|
This will indicate to CMake that the specified targets should not be included
|
|
in a MACOSX_BUNDLE and should not be WIN32_EXECUTABLEs. On platforms other
|
|
than MacOS X or Windows, this will have no effect.
|
|
|
|
Since pre-1.0.0.
|
|
#]=======================================================================]
|
|
|
|
cmake_policy(VERSION 3.16)
|
|
|
|
function(ecm_mark_nongui_executable)
|
|
foreach(_target ${ARGN})
|
|
set_target_properties(${_target}
|
|
PROPERTIES
|
|
WIN32_EXECUTABLE FALSE
|
|
MACOSX_BUNDLE FALSE
|
|
)
|
|
endforeach()
|
|
endfunction()
|