Skip to content

Commit c4b69e7

Browse files
sharkwouterthrimbor
authored andcommitted
cmake: Fail if NXDK_DIR is not set
1 parent 9e6db57 commit c4b69e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

share/toolchain-nxdk.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(NXDK_DIR $ENV{NXDK_DIR})
1+
if(DEFINED ENV{NXDK_DIR})
2+
set(NXDK_DIR $ENV{NXDK_DIR})
3+
else()
4+
message(FATAL_ERROR "The environment variable NXDK_DIR needs to be defined.")
5+
endif()
26

37
set(CMAKE_SYSTEM_NAME Generic)
48
set(CMAKE_SYSTEM_VERSION 1)

0 commit comments

Comments
 (0)