mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cmake: make default version 1
This commit is contained in:
parent
b6c89984a9
commit
f62798cb8b
@ -973,7 +973,7 @@ The call requires the target chip to be specified with *target* argument. Option
|
||||
|
||||
- PROJECT_DIR - directory of the project; defaults to CMAKE_SOURCE_DIR
|
||||
- PROJECT_NAME - name of the project; defaults to CMAKE_PROJECT_NAME
|
||||
- PROJECT_VER - version/revision of the project; defaults to "0.0.0"
|
||||
- PROJECT_VER - version/revision of the project; defaults to "1"
|
||||
- SDKCONFIG - output path of generated sdkconfig file; defaults to PROJECT_DIR/sdkconfig or CMAKE_SOURCE_DIR/sdkconfig depending if PROJECT_DIR is set
|
||||
- SDKCONFIG_DEFAULTS - defaults file to use for the build; defaults to empty
|
||||
- BUILD_DIR - directory to place ESP-IDF build-related artifacts, such as generated binaries, text files, components; defaults to CMAKE_BINARY_DIR
|
||||
|
@ -330,7 +330,7 @@ endfunction()
|
||||
# @param[in, optional] PROJECT_DIR (single value) directory of the main project the buildsystem
|
||||
# is processed for; defaults to CMAKE_SOURCE_DIR
|
||||
# @param[in, optional] PROJECT_VER (single value) version string of the main project; defaults
|
||||
# to 0.0.0
|
||||
# to 1
|
||||
# @param[in, optional] PROJECT_NAME (single value) main project name, defaults to CMAKE_PROJECT_NAME
|
||||
# @param[in, optional] SDKCONFIG (single value) sdkconfig output path, defaults to PROJECT_DIR/sdkconfig
|
||||
# if PROJECT_DIR is set and CMAKE_SOURCE_DIR/sdkconfig if not
|
||||
@ -366,7 +366,7 @@ macro(idf_build_process target)
|
||||
|
||||
__build_set_default(PROJECT_DIR ${CMAKE_SOURCE_DIR})
|
||||
__build_set_default(PROJECT_NAME ${CMAKE_PROJECT_NAME})
|
||||
__build_set_default(PROJECT_VER "0.0.0")
|
||||
__build_set_default(PROJECT_VER 1)
|
||||
__build_set_default(BUILD_DIR ${CMAKE_BINARY_DIR})
|
||||
|
||||
idf_build_get_property(project_dir PROJECT_DIR)
|
||||
|
@ -40,7 +40,7 @@ function(__project_get_revision var)
|
||||
else()
|
||||
message(STATUS "Project is not inside a git repository, or git repository has no commits;"
|
||||
" will not use 'git describe' to determine PROJECT_VER.")
|
||||
set(PROJECT_VER 0)
|
||||
set(PROJECT_VER 1)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user