CMake fails on first configure

Yu Jin technikmagma at gmail.com
Sat Sep 30 07:35:57 UTC 2023


Am So., 17. Sept. 2023 um 07:24 Uhr schrieb Yu Jin <technikmagma at gmail.com>:

> Am So., 17. Sept. 2023 um 07:23 Uhr schrieb Yu Jin <technikmagma at gmail.com
> >:
>
>> When I configure for the first time (into an empty folder) I get this
>> error:
>>
>> CMake Error at
>> C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-re0snf/CMakeLists.txt:12
>> (include_directories):
>>   Error evaluating generator expression:
>>
>>     $<TARGET_PROPERTY:Qt6::ZlibPrivate,_qt_module_has_private_headers>
>>
>>   Target "Qt6::ZlibPrivate" not found.
>>
>> (full log attached)
>>
> Log
>
>> If I ignore this error and click configure again it works. Looks like it
>> only occurs with Qt6.
>>
>
Nobody has an idea?? I found this in the  CMakeConfigureLog.yaml file:
  -
    kind: "try_compile-v1"
    backtrace:
      - "C:/Program
Files/CMake/share/cmake-3.26/Modules/CheckIncludeFileCXX.cmake:94
(try_compile)"
      - "development/cmake/ConfigureChecks.cmake:290
(check_include_file_cxx)"
      - "CMakeLists.txt:1146 (include)"
    checks:
      - "Looking for C++ include QtGui/qtgui-config.h"
    directories:
      source:
"C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c"
      binary:
"C:/lyx/master-build-64-qt6/CMakeFiles/CMakeScratch/TryCompile-z4oq2c"
    cmakeVariables:
      CMAKE_CXX_FLAGS: "/DWIN32 /D_WINDOWS /W3 /GR /EHsc"
      CMAKE_MODULE_PATH:
"C:/lyx/master/development/cmake/modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;C:/Qt/6.5.2/msvc2019_64/lib/cmake/Qt6/3rdparty/kwin"
    buildResult:
      variable: "HAVE_QTGUI_CONFIG_H"
      cached: true
      stdout: |
      exitCode: 1

(this is from another configure attempt). Of course the CMakeScratch folder
is empty.
-- 
  Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230930/179fa383/attachment-0001.html>


More information about the lyx-devel mailing list