mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
CMake: allow compile-time C++ flags to be set
For developper only, therefore the variable is set to advanced. Ideas from: Scott Kostyshak + Vincent van Ravensteijn
This commit is contained in:
parent
5955e83b1a
commit
99c92de8aa
@ -469,8 +469,12 @@ if(NOT MSVC)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(LYX_CXX_FLAGS_EXTRA "" CACHE STRING "Desired semicolon separated list of extra cxx compile flags, like '-Werror'")
|
||||||
|
mark_as_advanced(LYX_CXX_FLAGS_EXTRA)
|
||||||
if(LYX_CXX_FLAGS_EXTRA)
|
if(LYX_CXX_FLAGS_EXTRA)
|
||||||
add_definitions(${LYX_CXX_FLAGS_EXTRA})
|
foreach(_flag ${LYX_CXX_FLAGS_EXTRA})
|
||||||
|
add_definitions(${_flag})
|
||||||
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Qt5Core QUIET)
|
find_package(Qt5Core QUIET)
|
||||||
|
Loading…
Reference in New Issue
Block a user