From 242e277a661ec7e51f34dcaf86c1925d550b1498 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 24 Jan 2020 14:09:44 -0800 Subject: build: substitute the path into the generate files This resorts to the variable substitution to ensure the path embedded is correct. Without this, the path at the time of the configuration. In the case of the Swift project, this ended up searching in the *source* directory rather than the *build* directory. This will ensure that we export the file to an absolute location and we use the same location in the `cmarkConfig.cmake` file by means of CMake's `configure_file` subsitution. --- src/cmarkConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmarkConfig.cmake.in') diff --git a/src/cmarkConfig.cmake.in b/src/cmarkConfig.cmake.in index 9aae8a9..37884c0 100644 --- a/src/cmarkConfig.cmake.in +++ b/src/cmarkConfig.cmake.in @@ -3,5 +3,5 @@ set(HAVE_LIBCMARK_SHARED @CMARK_SHARED@) if((HAVE_LIBCMARK_STATIC AND NOT TARGET libcmark_static) OR (HAVE_LIBCMARK_SHARED AND NOT TARGET libcmark)) - include(${CMAKE_CURRENT_LIST_DIR}/cmarkTargets.cmake) + include(@CMARK_TARGETS_FILE@) endif() -- cgit v1.2.3