Skip to content

Commit

Permalink
cmake: enable some warnings (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored Nov 27, 2024
1 parent c110110 commit 538f024
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
4 changes: 4 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}:
Expand Down

0 comments on commit 538f024

Please sign in to comment.