From d37ca8fafe92dbe3d27bab448ec838c49b6540c2 Mon Sep 17 00:00:00 2001 From: Olivier <1+olivier@noreply.raspot.in> Date: Wed, 19 Aug 2026 08:48:00 +0200 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"workstation-setup"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workstation-setup/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/workstation-setup/CMakeLists.txt b/workstation-setup/CMakeLists.txt index 630de08..99f140a 100644 --- a/workstation-setup/CMakeLists.txt +++ b/workstation-setup/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21) project( nixos-workstations-setup - VERSION 1.0.0 + VERSION 1.1.0 LANGUAGES CXX ) @@ -28,9 +28,13 @@ if(NOT DEFINED PIN_HELPER_PATH) message(FATAL_ERROR "PIN_HELPER_PATH is required") endif() -if(NOT DEFINED TARGET_USER) - message(FATAL_ERROR "TARGET_USER is required") -endif() +# Les chemins Nix sont générés dans un header au lieu d'être injectés avec +# -D...=\"...\". Cela supprime toute ambiguïté d'échappement CMake/compilateur. +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/src/Config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/generated/Config.h + @ONLY +) add_subdirectory(src)