We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aab910 commit 30c6bf7Copy full SHA for 30c6bf7
1 file changed
share/toolchain-nxdk.cmake
@@ -1,8 +1,6 @@
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()
+get_filename_component(NXDK_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
+set(NXDK_DIR "${NXDK_ROOT_DIR}" CACHE PATH "Path to the nxdk root directory.")
+message(STATUS "Using NXDK from: ${NXDK_DIR}")
6
7
set(CMAKE_SYSTEM_NAME Generic)
8
set(CMAKE_SYSTEM_VERSION 1)
0 commit comments