Значения переменных по умолчанию

This commit is contained in:
Andrei Astafev 2022-05-06 14:16:45 +03:00
parent dd2a4fdb7d
commit c5d11a80b7

View File

@ -5,26 +5,22 @@ include_guard(GLOBAL)
# cmake-format: off # cmake-format: off
if(NOT MYX_CMAKE_ORGANIZATION_NAME) if(NOT MYX_CMAKE_ORGANIZATION_NAME)
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_ORGANIZATION_NAME is not defined") myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_ORGANIZATION_NAME is undefined")
else()
set(MYX_CMAKE_ORGANIZATION_NAME "ORG NAME" CACHE STRING "") set(MYX_CMAKE_ORGANIZATION_NAME "ORG NAME" CACHE STRING "")
endif() endif()
if(NOT MYX_CMAKE_AUTHOR_NAME) if(NOT MYX_CMAKE_AUTHOR_NAME)
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_AUTHOR_NAME is not defined") myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_NAME is undefined")
else()
set(MYX_CMAKE_AUTHOR_NAME "AUTHOR NAME" CACHE STRING "") set(MYX_CMAKE_AUTHOR_NAME "AUTHOR NAME" CACHE STRING "")
endif() endif()
if(NOT MYX_CMAKE_AUTHOR_EMAIL) if(NOT MYX_CMAKE_AUTHOR_EMAIL)
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_AUTHOR_EMAIL is not defined") myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_AUTHOR_EMAIL is undefined")
else()
set(MYX_CMAKE_AUTHOR_EMAIL "AUTHOR@EMAIL" CACHE STRING "") set(MYX_CMAKE_AUTHOR_EMAIL "AUTHOR@EMAIL" CACHE STRING "")
endif() endif()
if(NOT MYX_CMAKE_DESCRIPTION) if(NOT MYX_CMAKE_DESCRIPTION)
myx_cmake_message_warning("MyxCMake: Required variable MYX_CMAKE_DESCRIPTION is not defined") myx_cmake_message_warning("MyxCMake: Variable MYX_CMAKE_DESCRIPTION is undefined")
else()
set(MYX_CMAKE_DESCRIPTION "PROJECT DESCRIPTION" CACHE STRING "") set(MYX_CMAKE_DESCRIPTION "PROJECT DESCRIPTION" CACHE STRING "")
endif() endif()