Skip to content

Commit a79f752

Browse files
committed
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.
1 parent 1b79721 commit a79f752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
message(STATUS "Using CMake version ${CMAKE_VERSION}")
22
cmake_minimum_required(VERSION 3.10...${CMAKE_VERSION})
33

4-
SET(InfiniTime_DIR "InfiniTime" CACHE PATH "Path to InfiniTime source path to use for simulator")
4+
SET(InfiniTime_DIR "${CMAKE_SOURCE_DIR}/InfiniTime" CACHE PATH "Path to InfiniTime source path to use for simulator")
55

66
if(NOT EXISTS ${InfiniTime_DIR})
77
message(FATAL_ERROR "Can't access folder '${InfiniTime_DIR}'. Try `git submodule update --init --recursive` to initialize the git submodule of InfiniTime")

0 commit comments

Comments
 (0)