diff options
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 921871bee..e7600542e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -144,6 +144,9 @@ if(NOT Gn_FOUND) if(QT_FEATURE_qtpdf_build) add_dependencies(run_pdf_GnReady gn) endif() +endif() + +if(NOT Gn_FOUND OR Gn_EXECUTABLE MATCHES "^${installDir}") set(INSTALL_GN 1 CACHE INTERNAL "") endif() |