Skip to content

Commit 51ef54b

Browse files
committed
Remove cmake definitions
1 parent 9b24006 commit 51ef54b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,10 @@ if(YSTDLIB_CPP_IS_TOP_LEVEL)
4242
# installed, this file is not necessary.
4343
include(build/deps/settings.cmake OPTIONAL)
4444

45-
# Use ystdlib-cpp's own path since there's no parent project.
46-
# Note: the ending slash is needed, otherwise it gets appended to relative paths and make them
47-
# into root paths, which is incorrect.
48-
string(LENGTH "${CMAKE_CURRENT_LIST_DIR}/" YSTDLIB_CPP_PROJECT_SOURCE_PATH_SIZE)
49-
5045
# If previously undefined, `BUILD_TESTING` will be set to ON.
5146
include(CTest)
5247
endif()
5348

54-
if(DEFINED YSTDLIB_CPP_PROJECT_SOURCE_PATH_SIZE)
55-
# Macro providing the length of the absolute source directory path of the project using
56-
# ystdlib-cpp so we can output file name information with relative (rather than absolute) paths.
57-
add_definitions(
58-
"-DYSTDLIB_CPP_PROJECT_SOURCE_PATH_SIZE=${YSTDLIB_CPP_PROJECT_SOURCE_PATH_SIZE}"
59-
)
60-
endif()
61-
6249
if(BUILD_TESTING AND YSTDLIB_CPP_BUILD_TESTING)
6350
set(YSTDLIB_CPP_ENABLE_TESTS ON)
6451
endif()

0 commit comments

Comments
 (0)