Skip to content

Commit 4cde5a8

Browse files
authored
build: Set board as generic if not defined (#1943)
Observed issue using cmake: CMake Error at CMakeLists.txt:136 (string): string no output variable specified This will help to keep iotjs in debian repo. Change-Id: I2991d324b887e340cb676f7de8ea0dda2ea7c050 Forwarded: #1943 Bug: #1945 Bug-Debian: https://bugs.debian.org/957364 Origin: https://github.com/TizenTeam/iotjs/tree/sandbox/rzr/build/review/master IoT.js-DCO-1.0-Signed-off-by: Philippe Coval [email protected]
1 parent bf715a9 commit 4cde5a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ else()
132132
endif()
133133

134134
# Add board-dependant flags
135+
if(NOT DEFINED TARGET_BOARD)
136+
set(TARGET_BOARD "generic")
137+
endif()
135138
iotjs_add_compile_flags(-DTARGET_BOARD=${TARGET_BOARD})
136139
string(TOUPPER ${TARGET_BOARD} TARGET_BOARD_UPPER)
137140
string(CONCAT TARGET_BOARD_SYMBOL "TARGET_BOARD_" ${TARGET_BOARD_UPPER})

0 commit comments

Comments
 (0)