Create Version.h in binary dir instead of src dir
Don't use source directory for generated files. Use the binary (build) directory instead.
This commit is contained in:
parent
26ae828e39
commit
688dc2fed7
2 changed files with 3 additions and 1 deletions
|
|
@ -612,6 +612,7 @@ list(APPEND RECOVERYLOADER_SOURCE_FILES
|
|||
|
||||
set(INCLUDE_FILES
|
||||
|
||||
${CMAKE_CURRENT_BINARY_DIR}/src/Version.h
|
||||
BootloaderVersion.h
|
||||
logging/Logger.h
|
||||
logging/NrfLogger.h
|
||||
|
|
@ -710,6 +711,7 @@ set(INCLUDE_FILES
|
|||
)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}/src # include generated files like Version.h
|
||||
.
|
||||
../
|
||||
libs/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue