mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
Respect CFLAGS/CXXFLAGS
In commit bb8723d
"add toluapp subtree" support for user defined FLAGS was removed. I do not see a reason why this should not be allowed, so it would be great if this could be added again.
Reference: https://bugs.gentoo.org/772176
This commit is contained in:
parent
88fce68a7c
commit
d365c7f7ba
@ -37,10 +37,10 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
endif(NOT CMAKE_BUILD_TYPE)
|
endif(NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
||||||
# -std options for all build types
|
# -std options for all build types
|
||||||
set(CMAKE_C_FLAGS "-std=c99"
|
set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}"
|
||||||
CACHE STRING "Flags used by the C compiler during all build types."
|
CACHE STRING "Flags used by the C compiler during all build types."
|
||||||
FORCE)
|
FORCE)
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++17"
|
set(CMAKE_CXX_FLAGS "-std=c++17 ${CMAKE_CXX_FLAGS}"
|
||||||
CACHE STRING "Flags used by the C++ compiler during all build types."
|
CACHE STRING "Flags used by the C++ compiler during all build types."
|
||||||
FORCE)
|
FORCE)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
Loading…
Reference in New Issue
Block a user