[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] CMake: allow compile-time C++ flags to be set
From:       Scott Kostyshak <skostysh () lyx ! org>
Date:       2013-11-30 18:08:33
Message-ID: 20131130180833.B08CF280484 () lyx ! lyx ! org
[Download RAW message or body]

commit 374cf6a39f321c7843b36aab242e0852b01887b8
Author: Scott Kostyshak <skostysh@lyx.org>
Date:   Fri Nov 29 21:08:48 2013 -0500

    CMake: allow compile-time C++ flags to be set
    
    For example, one could run CMake as follows:
      cmake -DLYX_CXX_FLAGS_EXTRA="-Werror"
    
    Thanks to Kornel.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c285dc0..c0fd673 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -468,6 +468,10 @@ if(NOT MSVC)
 	endif()
 endif()
 
+if(LYX_CXX_FLAGS_EXTRA)
+	add_definitions(${LYX_CXX_FLAGS_EXTRA})
+endif()
+
 find_package(Qt5Core QUIET)
 if (Qt5Core_FOUND)
 	find_package(Qt5Widgets REQUIRED)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic