]> granicus.if.org Git - graphviz/commit
gvc: CMake: fix: use the ltdl include dir only if we have it
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 16 Aug 2021 17:42:48 +0000 (19:42 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 23 Aug 2021 19:39:05 +0000 (21:39 +0200)
commit1bc7cf9a8e6aac2be289d86ea8d5a9056e21f425
tree9b82925fbe9b4dce8ede0cbd6c5d68220c2e1de4
parent2714a5b34eaaa1ce731f48adac1cc68194814b8e
gvc: CMake: fix: use the ltdl include dir only if we have it

Fixes this error when we don't have ltdl:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
C:/Users/magja/graphviz/lib/gvc/LTDL_INCLUDE_DIR
   used as include directory in directory C:/Users/magja/graphviz/lib/gvc

On Windows, we currently only use the ltdl compatibility header
introduced in d70cdba7937724c19393d97bd280320cdf8c3c8f, not the link
library itself. Hence the WIN32 OR MINGW guard for the link library,
but not for the include directory.

There are other problems when the LTDL library is not available that
will be fixed in upcoming commits, hence no changelog entry yet.
lib/gvc/CMakeLists.txt