From a79f75285fc7b0cc1e083e9abb4491540277d2b3 Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Sun, 20 Feb 2022 22:24:28 +0100 Subject: [PATCH] cmake: improve InfiniTime_DIR default With the old default of just "InfiniTime" you have to have the working directory in the `InfiniSim` directory. The new default makes the default independent of the current working directory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fdfc94b..4c60546 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ message(STATUS "Using CMake version ${CMAKE_VERSION}") cmake_minimum_required(VERSION 3.10...${CMAKE_VERSION}) -SET(InfiniTime_DIR "InfiniTime" CACHE PATH "Path to InfiniTime source path to use for simulator") +SET(InfiniTime_DIR "${CMAKE_SOURCE_DIR}/InfiniTime" CACHE PATH "Path to InfiniTime source path to use for simulator") if(NOT EXISTS ${InfiniTime_DIR}) message(FATAL_ERROR "Can't access folder '${InfiniTime_DIR}'. Try `git submodule update --init --recursive` to initialize the git submodule of InfiniTime")