mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
CMake: Add reminder for when we upgrade to C++17
This commit is contained in:
parent
a3a24f9840
commit
85b8d96919
@ -2,6 +2,13 @@ configure_file(pandaVersion.h.in pandaVersion.h)
|
|||||||
configure_file(checkPandaVersion.h.in checkPandaVersion.h)
|
configure_file(checkPandaVersion.h.in checkPandaVersion.h)
|
||||||
configure_file(checkPandaVersion.cxx.in checkPandaVersion.cxx)
|
configure_file(checkPandaVersion.cxx.in checkPandaVersion.cxx)
|
||||||
|
|
||||||
|
if(CMAKE_CXX_STANDARD GREATER_EQUAL 17)
|
||||||
|
# This serves as a reminder to update checkPandaVersion.h.in when we upgrade
|
||||||
|
# to C++17, which supports inline variables - a cleaner way of depending on
|
||||||
|
# the Panda version symbol from a header than what we're currently doing.
|
||||||
|
message(FATAL_ERROR "Developer notice: Update checkPandaVersion.h.in for C++17!")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(P3DTOOLBASE_HEADERS
|
set(P3DTOOLBASE_HEADERS
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/checkPandaVersion.h
|
${CMAKE_CURRENT_BINARY_DIR}/checkPandaVersion.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/pandaVersion.h
|
${CMAKE_CURRENT_BINARY_DIR}/pandaVersion.h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user