tests/examples/CMakeLists.txt: Add a project() call (#1926)

project() automatically sets the PROJECT_NAME variable. Thus, when this
CMake code is run due to being included by awesome, this commit has no
effect.

When this CMake code is run on its own, CMake will no longer check for a
C and C++ compiler.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-07-17 10:11:52 +02:00 committed by Daniel Hahler
parent a5d6f877c5
commit d33d7d71d7
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@
# where relevant. Those images are used by the documentation and help the
# developers track user interface regressions and glitches. Finally, it also
# helps to find broken code.
if(NOT DEFINED PROJECT_NAME)
project(awesome-tests-examples NONE)
endif()
cmake_minimum_required(VERSION 3.0.0)
# Get and update the LUA_PATH so the scripts can be executed without Awesome.