mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
cmake: force verbose make files, add output for disable wall
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17797 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c701b8ff65
commit
e76303e727
@ -68,7 +68,9 @@ endif(shared)
|
|||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
if(NOT quiet)
|
if(NOT quiet)
|
||||||
set(CMAKE_VERBOSE_MAKEFILE ON)
|
set(CMAKE_VERBOSE_MAKEFILE ON CACHE TYPE STRING FORCE)
|
||||||
|
message(STATUS "verbose Makefile, disable with -Dquiet=1")
|
||||||
|
message(STATUS "")
|
||||||
endif(NOT quiet)
|
endif(NOT quiet)
|
||||||
set(LYX_CXX_FLAGS -Wall)
|
set(LYX_CXX_FLAGS -Wall)
|
||||||
if(stdlib-debug)
|
if(stdlib-debug)
|
||||||
@ -180,6 +182,7 @@ if(MSVC)
|
|||||||
|
|
||||||
# Use the highest warning level
|
# Use the highest warning level
|
||||||
set(CMAKE_CXX_WARNING_LEVEL 4 CACHE TYPE STRING FORCE)
|
set(CMAKE_CXX_WARNING_LEVEL 4 CACHE TYPE STRING FORCE)
|
||||||
|
set(WARNING_LEVEL_MESSAGE "(switch to warning level 3 with -DDISABLEWALL=1)")
|
||||||
|
|
||||||
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
|
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
|
||||||
STRING(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
STRING(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||||
|
Loading…
Reference in New Issue
Block a user