Skip to content

Commit

Permalink
Improve build system for the CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jun 11, 2024
1 parent c42ecd4 commit 9a911d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 6 additions & 0 deletions source/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ if(NOT OPTION_BUILD_CLI)
return()
endif()

# Check if the dependency loaders are enabled
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS OR NOT OPTION_BUILD_LOADERS_NODE)
message(WARNING "The Extension and NodeJS Loaders are a dependency of the CLI, in order to compile the CLI, enable them with -DOPTION_BUILD_LOADERS_EXT=ON -DOPTION_BUILD_LOADERS_NODE=ON")
return()
endif()

# CLI applications
add_subdirectory(metacallcli)
add_subdirectory(plugins)
6 changes: 0 additions & 6 deletions source/cli/metacallcli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Check if this loader is enabled
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS OR NOT OPTION_BUILD_LOADERS_NODE)
message(WARNING "The Extension and NodeJS loaders are a dependency of the CLI, in order to compile the CLI, enable them with -DOPTION_BUILD_LOADERS_EXT=ON -DOPTION_BUILD_LOADERS_NODE=ON")
return()
endif()

#
# Executable name and options
#
Expand Down
5 changes: 0 additions & 5 deletions source/cli/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#Check if extension loader is enabled
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS)
return()
endif()

#
# NodeJS Dependency
#
Expand Down

0 comments on commit 9a911d4

Please sign in to comment.