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:
parent
a5d6f877c5
commit
d33d7d71d7
|
@ -9,6 +9,11 @@
|
||||||
# where relevant. Those images are used by the documentation and help the
|
# where relevant. Those images are used by the documentation and help the
|
||||||
# developers track user interface regressions and glitches. Finally, it also
|
# developers track user interface regressions and glitches. Finally, it also
|
||||||
# helps to find broken code.
|
# helps to find broken code.
|
||||||
|
|
||||||
|
if(NOT DEFINED PROJECT_NAME)
|
||||||
|
project(awesome-tests-examples NONE)
|
||||||
|
endif()
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.0.0)
|
cmake_minimum_required(VERSION 3.0.0)
|
||||||
|
|
||||||
# Get and update the LUA_PATH so the scripts can be executed without Awesome.
|
# Get and update the LUA_PATH so the scripts can be executed without Awesome.
|
||||||
|
|
Loading…
Reference in New Issue