]> granicus.if.org Git - graphviz/commitdiff
CMake: use a relative path to locate configure_plugins.cmake
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 25 Nov 2021 18:07:30 +0000 (10:07 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 2 Dec 2021 15:47:07 +0000 (07:47 -0800)
`install` with `SCRIPT` supports using relative paths to the current directory,
so there is no need to use the less obvious `${TOP_SOURCE_DIR}`.

cmd/dot/CMakeLists.txt

index 283448b7a51da81a384edbcbc5d64a8551e12197..a65ed383cb5eed92cfc419368566e25e18e72f2c 100644 (file)
@@ -114,6 +114,6 @@ endif()
 
 if(NOT CMAKE_CROSSCOMPILING)
   install(
-      SCRIPT ${TOP_SOURCE_DIR}/cmake/configure_plugins.cmake
+      SCRIPT ../../cmake/configure_plugins.cmake
   )
 endif()