[cmake-developers] [CMake 0014658]: project() resets CMAKE_VERBOSE_MAKEFILE
Mantis Bug Tracker
mantis at public.kitware.com
Wed Dec 18 22:41:39 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14658
======================================================================
Reported By: jschroeder
Assigned To:
======================================================================
Project: CMake
Issue ID: 14658
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-12-18 22:41 EST
Last Modified: 2013-12-18 22:41 EST
======================================================================
Summary: project() resets CMAKE_VERBOSE_MAKEFILE
Description:
This may be OS and generator independent. (I've reproduced it on Windows 7
(with MS Visual Studio) and Ubuntu 12.04 (with GNUmake/GCC).)
Using project() in a CMakeLists.txt file causes CMAKE_VERBOSE_MAKEFILE to be
0/False
Steps to Reproduce:
1. Run cmake on the following (minimal) CMakeLists.txt file.
Result: in the cmake output, the second message reporting the value of
CMAKE_VERBOSE_MAKEFILE is "FALSE". (See output below.)
Expected result: in the cmake output, both lines reporting
CMAKE_VERBOSE_MAKEFILE should be 1 (or True)
========begin CMakeLists.txt==========
cmake_minimum_required(VERSION 2.8.12) # I'm not sure how far back this bug
might go
set(CMAKE_VERBOSE_MAKEFILE 1)
message(STATUS "CMAKE_VERBOSE_MAKEFILE ${CMAKE_VERBOSE_MAKEFILE}")
project(dummy)
message(STATUS "CMAKE_VERBOSE_MAKEFILE ${CMAKE_VERBOSE_MAKEFILE}")
========end CMakeLists.txt==========
foobar at ubuntu:~/build$ cmake ..
-- CMAKE_VERBOSE_MAKEFILE 1
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- CMAKE_VERBOSE_MAKEFILE FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/foobar/build
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-12-18 22:41 jschroeder New Issue
2013-12-18 22:41 jschroeder File Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list