From 52cd570ac0179f28fdee50a47399459921e216e5 Mon Sep 17 00:00:00 2001 From: SergioMartin86 Date: Wed, 6 Mar 2024 18:22:51 +0100 Subject: [PATCH] Disabling all compilation if this is a subproject --- meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index e22fe5a..b27c8dc 100644 --- a/meson.build +++ b/meson.build @@ -8,6 +8,9 @@ project('quickerNES','c','cpp', # Loading dependencies subdir('source') +# Do not build any targets if this is a subproject +if meson.is_subproject() == false + # Common application flags commonCompileArgs = [ '-Wfatal-errors', '-Wall'] @@ -22,10 +25,6 @@ hqnSubproject = subproject('hqn') hqnDependency = hqnSubproject.get_variable('hqnDependency') # Building playback tool - -# Do not build any targets if this is a subproject -if meson.is_subproject() == false - if get_option('buildPlayer') == true executable('player', 'source/player.cpp',