Skip to content

Commit a7a74be

Browse files
authored
Use relative paths (#239)
1 parent be50653 commit a7a74be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set(CMAKE_CXX_STANDARD 14)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CXX_EXTENSIONS OFF)
88

9+
set(THIRD_PARTY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party)
10+
911
if(MSVC AND (MSVC_VERSION LESS 1900))
1012
message(FATAL_ERROR "Visual Studio Compiler Version >= 1900 Required to build.")
1113
endif()

source/layers/validation/checkers/events_checker/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ target_sources(${TARGET_NAME}
33
${CMAKE_CURRENT_LIST_DIR}/zel_events_checker.h
44
${CMAKE_CURRENT_LIST_DIR}/zel_events_checker.cpp
55

6-
${CMAKE_SOURCE_DIR}/third_party/xla/graphcycles.cc
6+
${THIRD_PARTY_SOURCE_DIR}/xla/graphcycles.cc
77
)
88

99
target_include_directories(${TARGET_NAME}
1010
PRIVATE
11-
${CMAKE_SOURCE_DIR}/third_party
11+
${THIRD_PARTY_SOURCE_DIR}
1212
)

0 commit comments

Comments
 (0)