mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
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.
This commit is contained in:
parent
9edb2c5ec9
commit
374cf6a39f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user