From d3c928e03d21ff036190f65db71f23e5a60b184a Mon Sep 17 00:00:00 2001 From: Andrea Bergamasco Date: Wed, 12 Aug 2026 17:08:52 +0200 Subject: [PATCH] Fix swapped arguments for default build target list The example plugins didn't build 'by default' without passing `-DFFGL_BUILD_EXAMPLE_PLUGINS=ON` explicitly. When running `cmake -S . -B build && cmake --build build --target help` the `${FFGL_MASTER_PROJECT}` toggle fell in the help text slot, and the docstring landed in the `default` argument, never evaluated as true, so the default plugin never appeared in the targets list. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c09ce..0dc271b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,7 @@ endif() # should we build the example plugins? we do this by default # if building the project directly, but not when adding ffgl # to another project -option(FFGL_BUILD_EXAMPLE_PLUGINS ${FFGL_MASTER_PROJECT} "Build the example FFGL plugins") +option(FFGL_BUILD_EXAMPLE_PLUGINS "Build the example FFGL plugins" ${FFGL_MASTER_PROJECT}) if (${FFGL_BUILD_EXAMPLE_PLUGINS}) add_subdirectory(source/plugins)