From 340874996e63ec8a6900ca37f4d346656d6a25e3 Mon Sep 17 00:00:00 2001 From: tellowkrinkle Date: Sun, 7 Nov 2021 17:05:39 -0600 Subject: [PATCH] CMake: Always default `CMAKE_BUILD_PO` off Git files getting modified by build is just as much of a pain in release builds as it is in devel builds --- cmake/BuildParameters.cmake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmake/BuildParameters.cmake b/cmake/BuildParameters.cmake index 5eed920d65..ca8055956e 100644 --- a/cmake/BuildParameters.cmake +++ b/cmake/BuildParameters.cmake @@ -121,15 +121,7 @@ endif() # It only cost several MB so disbable it by default option(CMAKE_BUILD_STRIP "Srip binaries to save a couple of MB (developer option)") -if(NOT DEFINED CMAKE_BUILD_PO) - if(CMAKE_BUILD_TYPE STREQUAL "Release") - set(CMAKE_BUILD_PO TRUE) - message(STATUS "Enable the building of po files by default in ${CMAKE_BUILD_TYPE} build !!!") - else() - set(CMAKE_BUILD_PO FALSE) - message(STATUS "Disable the building of po files by default in ${CMAKE_BUILD_TYPE} build !!!") - endif() -endif() +option(CMAKE_BUILD_PO "Build po files (modifies git-tracked files)" OFF) #------------------------------------------------------------------------------- # Select the architecture