From a8e5740ca0ed0d9c068bdd7de4e72c63f3d2a9b5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 2 Apr 2022 11:03:02 -0700 Subject: [PATCH] CMake: remove 'TOP_BINARY_DIR' This can be located through standard CMake mechanisms. --- CMakeLists.txt | 1 - plugin/pango/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90e5e9a02..16f6ad94a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,6 @@ set(PLUGIN_INSTALL_DIR ${LIBRARY_INSTALL_DIR}/graphviz) set(PKGCONFIG_DIR ${LIBRARY_INSTALL_DIR}/pkgconfig) # TODO: Find a way to check for groff and ps2pdf for manpage pdf generation # set(MAN_PDF_INSTALL_DIR share/graphviz/doc/pdf) -set(TOP_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") set(WINDOWS_DEPENDENCY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/windows/dependencies/libraries") set(WINDOWS_DEPENDENCY_VCPKG_DIR "${CMAKE_CURRENT_SOURCE_DIR}/windows/dependencies/libraries/vcpkg/installed") if(CMAKE_CL_64) diff --git a/plugin/pango/CMakeLists.txt b/plugin/pango/CMakeLists.txt index d2c6a5311..26749af23 100644 --- a/plugin/pango/CMakeLists.txt +++ b/plugin/pango/CMakeLists.txt @@ -16,7 +16,7 @@ if(CAIRO_FOUND AND PANGOCAIRO_FOUND) target_include_directories(gvplugin_pango PRIVATE ../../lib ${CMAKE_CURRENT_SOURCE_DIR} - ${TOP_BINARY_DIR}/lib/common + ${CMAKE_BINARY_DIR}/lib/common ../../lib/cdt ../../lib/cgraph ../../lib/common -- 2.40.0