From 566878e6be3f0469337d458f526fb7e34c55f175 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Tue, 14 May 2024 14:25:35 +0000 Subject: [PATCH] Change READ->STRINGS to autoremove trailing white space and carriage return. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 448e5e02..a9603c55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.15) -file(READ "${CMAKE_SOURCE_DIR}/version.txt" version) +file(STRINGS "${CMAKE_SOURCE_DIR}/version.txt" version) add_definitions(-DPROJECT_VERSION="${version}") -file(READ "${CMAKE_SOURCE_DIR}/project_name.txt" project) +file(STRINGS "${CMAKE_SOURCE_DIR}/project_name.txt" project) message(STATUS "Project name: ${project}") message(STATUS "Project version: ${version}") -- GitLab