Значения переменных по умолчанию
This commit is contained in:
parent
dd2a4fdb7d
commit
c5d11a80b7
@ -5,26 +5,22 @@ include_guard(GLOBAL)
|
||||
|
||||
# cmake-format: off
|
||||
if(NOT MYX_CMAKE_ORGANIZATION_NAME)
|
||||
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_ORGANIZATION_NAME is not defined")
|
||||
else()
|
||||
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_ORGANIZATION_NAME is undefined")
|
||||
set(MYX_CMAKE_ORGANIZATION_NAME "ORG NAME" CACHE STRING "")
|
||||
endif()
|
||||
|
||||
if(NOT MYX_CMAKE_AUTHOR_NAME)
|
||||
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_AUTHOR_NAME is not defined")
|
||||
else()
|
||||
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_NAME is undefined")
|
||||
set(MYX_CMAKE_AUTHOR_NAME "AUTHOR NAME" CACHE STRING "")
|
||||
endif()
|
||||
|
||||
if(NOT MYX_CMAKE_AUTHOR_EMAIL)
|
||||
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_AUTHOR_EMAIL is not defined")
|
||||
else()
|
||||
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_EMAIL is undefined")
|
||||
set(MYX_CMAKE_AUTHOR_EMAIL "AUTHOR@EMAIL" CACHE STRING "")
|
||||
endif()
|
||||
|
||||
if(NOT MYX_CMAKE_DESCRIPTION)
|
||||
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_DESCRIPTION is not defined")
|
||||
else()
|
||||
myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_DESCRIPTION is undefined")
|
||||
set(MYX_CMAKE_DESCRIPTION "PROJECT DESCRIPTION" CACHE STRING "")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user