]> git.lyx.org Git - features.git/commitdiff
Cmake build: Remove debug message
authorKornel Benko <kornel@lyx.org>
Wed, 12 Jun 2019 17:31:46 +0000 (19:31 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:33 +0000 (15:48 +0200)
CMakeLists.txt

index c3fcadf5a09f1941ad20717a7c23452f76fbe4b5..51185601b70c0cd3ff3df65474de29aacf6f91f7 100644 (file)
@@ -337,11 +337,9 @@ endif()
 macro(setstripped _varname)
        if(${ARGC} GREATER 1)
                string(STRIP "${ARGV1}" _v)
-                message(STATUS "1. _v = ${_varname} ${_v}")
                 if (_v MATCHES "^\\[\(.+\)\\]$")
                   set(_v ${CMAKE_MATCH_1})
                 endif()
-                message(STATUS "2. _v = ${_v}")
                if(USE_POSIX_PACKAGING)
                        string(TOLOWER ${_v} ${_varname})
                else()
@@ -354,6 +352,8 @@ endmacro(setstripped)
 
 foreach(_c_l ${_config_lines} )
        if(_c_l MATCHES "^AC_INIT\\(\([^,]+\),\([^,]+\), *\\[\([^,]+\)\\] *,\(.*\)")
+                # Not using CMAKE_MATCH_ directly is needed, because
+                # its value is now changed inside macro setstripped
                 set(_PB ${CMAKE_MATCH_1})
                 set(_PV ${CMAKE_MATCH_2})
                 set(_PBU ${CMAKE_MATCH_3})