diff --git a/Makefile.defs b/Makefile.defs index 99a9e08ec..09207b7b5 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -80,8 +80,7 @@ ifdef KODEBUG export DEBUG endif -# CMAKE:=cmake --no-warn-unused-cli -CMAKE := cmake +CMAKE := cmake -Wdev --warn-uninitialized NINJA := $(or $(NINJA),ninja) ifneq (,$(or $(VERBOSE),$(V))) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a51feefee..5d8fdba13 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -14,6 +14,8 @@ add_custom_target(download) # HELPERS. {{{ +set(PROJECTS) + function(declare_project DIR) cmake_parse_arguments("" "EXCLUDE_FROM_ALL" "SOURCE_DIR" "DEPENDS" ${ARGN}) get_filename_component(NAME ${DIR} NAME) @@ -35,6 +37,8 @@ function(declare_project DIR) set(${NAME}_DEPENDS ${_DEPENDS} PARENT_SCOPE) if(_EXCLUDE_FROM_ALL) set(${NAME}_EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL PARENT_SCOPE) + else() + set(${NAME}_EXCLUDE_FROM_ALL PARENT_SCOPE) endif() # message(WARNING " # ${NAME}: