Skip to content

Commit 9a911d4

Browse files
committed
Improve build system for the CLI.
1 parent c42ecd4 commit 9a911d4

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

source/cli/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ if(NOT OPTION_BUILD_CLI)
44
return()
55
endif()
66

7+
# Check if the dependency loaders are enabled
8+
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS OR NOT OPTION_BUILD_LOADERS_NODE)
9+
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")
10+
return()
11+
endif()
12+
713
# CLI applications
814
add_subdirectory(metacallcli)
915
add_subdirectory(plugins)

source/cli/metacallcli/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Check if this loader is enabled
2-
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS OR NOT OPTION_BUILD_LOADERS_NODE)
3-
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")
4-
return()
5-
endif()
6-
71
#
82
# Executable name and options
93
#

source/cli/plugins/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
#Check if extension loader is enabled
2-
if(NOT OPTION_BUILD_LOADERS OR NOT OPTION_BUILD_LOADERS_EXT OR NOT OPTION_BUILD_EXTENSIONS)
3-
return()
4-
endif()
5-
61
#
72
# NodeJS Dependency
83
#

0 commit comments

Comments
 (0)