Discussion:
cmake warnings
Abdelrazak Younes
2014-05-10 16:32:13 UTC
Permalink
Hi guys,

Just checked out feature/str-metrics and I got some warning when running
cmake:

CMake Warning (dev) at src/CMakeLists.txt:106 (add_executable):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

Target "lyx2.2" links to target "Qt5::Concurrent" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target,
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at src/CMakeLists.txt:106 (add_executable):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

Target "lyx2.2" links to target "Qt5::Concurrent" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target,
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.

By the way, I just run "cmake .." without any argument, is this good enough
those days?

Abdel.
Kornel Benko
2014-05-10 19:50:55 UTC
Permalink
Post by Abdelrazak Younes
Hi guys,
Just checked out feature/str-metrics and I got some warning when running
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target "lyx2.2" links to target "Qt5::Concurrent" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target,
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
I don't see it. But I don't have Qt5 anyway.
Could you display the command arguments of add_executable on line 106?

message(STATUS ${_lyx}
${WIN32_CONSOLE}
${LYX_BUILD_BUNDLE}
${lyx_sources}
${lyx_headers}
${vld_files}
${FILE_RC}
${lyx_info_files}
${lyx_cmake_files}
${OSX_BUNDLE_FILES}
)

To see, where is the colon inserted?
Post by Abdelrazak Younes
By the way, I just run "cmake .." without any argument, is this good enough
those days?
No. But since some values will be used from cache, so it may fit.

Rebuilding with saved values should be done by
# make rebuild_cache
in the build directory.
Post by Abdelrazak Younes
Abdel.
Kornel
Abdelrazak Younes
2014-05-10 20:26:24 UTC
Permalink
Am Samstag, 10. Mai 2014 um 18:32:13, schrieb Abdelrazak Younes <
Post by Abdelrazak Younes
Hi guys,
Just checked out feature/str-metrics and I got some warning when running
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this
warning.
Post by Abdelrazak Younes
Target "lyx2.2" links to target "Qt5::Concurrent" but the target was
not
Post by Abdelrazak Younes
found. Perhaps a find_package() call is missing for an IMPORTED
target,
Post by Abdelrazak Younes
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
I don't see it. But I don't have Qt5 anyway.
I use Qt4.8 but Qt5 is also installed I think but only the runtime not the
devel package.
Could you display the command arguments of add_executable on line 106?
message(STATUS ${_lyx}
${WIN32_CONSOLE}
${LYX_BUILD_BUNDLE}
${lyx_sources}
${lyx_headers}
${vld_files}
${FILE_RC}
${lyx_info_files}
${lyx_cmake_files}
${OSX_BUNDLE_FILES}
)
To see, where is the colon inserted?
Here it is:
--
lyx2.2/home/ayounes/devel/lyx/maingit/src/output_docbook.cpp/home/ayounes/devel/lyx/maingit/src/InsetList.cpp/home/ayounes/devel/lyx/maingit/src/Color.cpp/home/ayounes/devel/lyx/maingit/src/Language.cpp/home/ayounes/devel/lyx/maingit/src/TocBackend.cpp/home/ayounes/devel/lyx/maingit/src/ConverterCache.cpp/home/ayounes/devel/lyx/maingit/src/HSpace.cpp/home/ayounes/devel/lyx/maingit/src/LaTeXFonts.cpp/home/ayounes/devel/lyx/maingit/src/Session.cpp/home/ayounes/devel/lyx/maingit/src/CutAndPaste.cpp/home/ayounes/devel/lyx/maingit/src/PDFOptions.cpp/home/ayounes/devel/lyx/maingit/src/VSpace.cpp/home/ayounes/devel/lyx/maingit/src/factory.cpp/home/ayounes/devel/lyx/maingit/src/BranchList.cpp/home/ayounes/devel/lyx/maingit/src/DocIterator.cpp/home/ayounes/devel/lyx/maingit/src/Compare.cpp/home/ayounes/devel/lyx/maingit/src/LyXVC.cpp/home/ayounes/devel/lyx/maingit/src/InsetIterator.cpp/home/ayounes/devel/lyx/maingit/src/FuncRequest.cpp/home/ayounes/devel/lyx/maingit/src/sgml.cpp/home/ayounes/devel/lyx/maingit/src/Graph.cpp/home/ayounes/devel/lyx/maingit/src/boost.cpp/home/ayounes/devel/lyx/maingit/src/Lexer.cpp/home/ayounes/devel/lyx/maingit/src/TextClass.cpp/home/ayounes/devel/lyx/maingit/src/LyXRC.cpp/home/ayounes/devel/lyx/maingit/src/Buffer.cpp/home/ayounes/devel/lyx/maingit/src/Text2.cpp/home/ayounes/devel/lyx/maingit/src/ParagraphParameters.cpp/home/ayounes/devel/lyx/maingit/src/PersonalWordList.cpp/home/ayounes/devel/lyx/maingit/src/version.cpp/home/ayounes/devel/lyx/maingit/src/LyXAction.cpp/home/ayounes/devel/lyx/maingit/src/Length.cpp/home/ayounes/devel/lyx/maingit/src/output_plaintext.cpp/home/ayounes/devel/lyx/maingit/src/ServerSocket.cpp/home/ayounes/devel/lyx/maingit/src/output_xhtml.cpp/home/ayounes/devel/lyx/maingit/src/Text.cpp/home/ayounes/devel/lyx/maingit/src/KeySequence.cpp/home/ayounes/devel/lyx/maingit/src/rowpainter.cpp/home/ayounes/devel/lyx/maingit/src/FontList.cpp/home/ayounes/devel/lyx/maingit/src/Undo.cpp/home/ayounes/devel/lyx/maingit/src/TexRow.cpp/home/ayounes/devel/lyx/maingit/src/Spacing.cpp/home/ayounes/devel/lyx/maingit/src/Dimension.cpp/home/ayounes/devel/lyx/maingit/src/BufferParams.cpp/home/ayounes/devel/lyx/maingit/src/Mover.cpp/home/ayounes/devel/lyx/maingit/src/Format.cpp/home/ayounes/devel/lyx/maingit/src/Author.cpp/home/ayounes/devel/lyx/maingit/src/output_latex.cpp/home/ayounes/devel/lyx/maingit/src/Encoding.cpp/home/ayounes/devel/lyx/maingit/src/Intl.cpp/home/ayounes/devel/lyx/maingit/src/ParagraphMetrics.cpp/home/ayounes/devel/lyx/maingit/src/CursorSlice.cpp/home/ayounes/devel/lyx/maingit/src/Counters.cpp/home/ayounes/devel/lyx/maingit/src/Thesaurus.cpp/home/ayounes/devel/lyx/maingit/src/KeyMap.cpp/home/ayounes/devel/lyx/maingit/src/FontInfo.cpp/home/ayounes/devel/lyx/maingit/src/ErrorList.cpp/home/ayounes/devel/lyx/maingit/src/Converter.cpp/home/ayounes/devel/lyx/maingit/src/ParIterator.cpp/home/ayounes/devel/lyx/maingit/src/Layout.cpp/home/ayounes/devel/lyx/maingit/src/Paragraph.cpp/home/ayounes/devel/lyx/maingit/src/ModuleList.cpp/home/ayounes/devel/lyx/maingit/src/output.cpp/home/ayounes/devel/lyx/maingit/src/BufferEncodings.cpp/home/ayounes/devel/lyx/maingit/src/Trans.cpp/home/ayounes/devel/lyx/maingit/src/VCBackend.cpp/home/ayounes/devel/lyx/maingit/src/main.cpp/home/ayounes/devel/lyx/maingit/src/Text3.cpp/home/ayounes/devel/lyx/maingit/src/BiblioInfo.cpp/home/ayounes/devel/lyx/maingit/src/Font.cpp/home/ayounes/devel/lyx/maingit/src/IndicesList.cpp/home/ayounes/devel/lyx/maingit/src/lengthcommon.cpp/home/ayounes/devel/lyx/maingit/src/OutputParams.cpp/home/ayounes/devel/lyx/maingit/src/FloatList.cpp/home/ayounes/devel/lyx/maingit/src/Box.cpp/home/ayounes/devel/lyx/maingit/src/LaTeXFeatures.cpp/home/ayounes/devel/lyx/maingit/src/Bidi.cpp/home/ayounes/devel/lyx/maingit/src/Chktex.cpp/home/ayounes/devel/lyx/maingit/src/PrinterParams.cpp/home/ayounes/devel/lyx/maingit/src/Server.cpp/home/ayounes/devel/lyx/maingit/src/LayoutModuleList.cpp/home/ayounes/devel/lyx/maingit/src/FuncStatus.cpp/home/ayounes/devel/lyx/maingit/src/BufferList.cpp/home/ayounes/devel/lyx/maingit/src/Row.cpp/home/ayounes/devel/lyx/maingit/src/buffer_funcs.cpp/home/ayounes/devel/lyx/maingit/src/Exporter.cpp/home/ayounes/devel/lyx/maingit/src/CoordCache.cpp/home/ayounes/devel/lyx/maingit/src/LaTeX.cpp/home/ayounes/devel/lyx/maingit/src/DepTable.cpp/home/ayounes/devel/lyx/maingit/src/LaTeXPackages.cpp/home/ayounes/devel/lyx/maingit/src/MetricsInfo.cpp/home/ayounes/devel/lyx/maingit/src/Floating.cpp/home/ayounes/devel/lyx/maingit/src/BufferView.cpp/home/ayounes/devel/lyx/maingit/src/WordList.cpp/home/ayounes/devel/lyx/maingit/src/CmdDef.cpp/home/ayounes/devel/lyx/maingit/src/Changes.cpp/home/ayounes/devel/lyx/maingit/src/LayoutFile.cpp/home/ayounes/devel/lyx/maingit/src/LyX.cpp/home/ayounes/devel/lyx/maingit/src/TextMetrics.cpp/home/ayounes/devel/lyx/maingit/src/Cursor.cpp/home/ayounes/devel/lyx/maingit/src/lyxfind.cpp/home/ayounes/devel/lyx/maingit/src/Bullet.cpp/home/ayounes/devel/lyx/maingit/src/InsetList.h/home/ayounes/devel/lyx/maingit/src/WordList.h/home/ayounes/devel/lyx/maingit/src/FuncRequest.h/home/ayounes/devel/lyx/maingit/src/TextMetrics.h/home/ayounes/devel/lyx/maingit/src/Encoding.h/home/ayounes/devel/lyx/maingit/src/Paragraph.h/home/ayounes/devel/lyx/maingit/src/Floating.h/home/ayounes/devel/lyx/maingit/src/LyXRC.h/home/ayounes/devel/lyx/maingit/src/rowpainter.h/home/ayounes/devel/lyx/maingit/src/output_docbook.h/home/ayounes/devel/lyx/maingit/src/Lexer.h/home/ayounes/devel/lyx/maingit/src/CoordCache.h/home/ayounes/devel/lyx/maingit/src/ColorSet.h/home/ayounes/devel/lyx/maingit/src/ColorCode.h/home/ayounes/devel/lyx/maingit/src/output.h/home/ayounes/devel/lyx/maingit/src/OutputEnums.h/home/ayounes/devel/lyx/maingit/src/LayoutFile.h/home/ayounes/devel/lyx/maingit/src/DocIterator.h/home/ayounes/devel/lyx/maingit/src/update_flags.h/home/ayounes/devel/lyx/maingit/src/FontInfo.h/home/ayounes/devel/lyx/maingit/src/Bullet.h/home/ayounes/devel/lyx/maingit/src/LaTeXFonts.h/home/ayounes/devel/lyx/maingit/src/Length.h/home/ayounes/devel/lyx/maingit/src/PersonalWordList.h/home/ayounes/devel/lyx/maingit/src/Text.h/home/ayounes/devel/lyx/maingit/src/Box.h/home/ayounes/devel/lyx/maingit/src/ErrorList.h/home/ayounes/devel/lyx/maingit/src/PrinterParams.h/home/ayounes/devel/lyx/maingit/src/Server.h/home/ayounes/devel/lyx/maingit/src/Citation.h/home/ayounes/devel/lyx/maingit/src/buffer_funcs.h/home/ayounes/devel/lyx/maingit/src/paper.h/home/ayounes/devel/lyx/maingit/src/PDFOptions.h/home/ayounes/devel/lyx/maingit/src/Buffer.h/home/ayounes/devel/lyx/maingit/src/Intl.h/home/ayounes/devel/lyx/maingit/src/Chktex.h/home/ayounes/devel/lyx/maingit/src/CursorSlice.h/home/ayounes/devel/lyx/maingit/src/ParagraphParameters.h/home/ayounes/devel/lyx/maingit/src/Trans.h/home/ayounes/devel/lyx/maingit/src/Thesaurus.h/home/ayounes/devel/lyx/maingit/src/Cursor.h/home/ayounes/devel/lyx/maingit/src/Compare.h/home/ayounes/devel/lyx/maingit/src/BufferEncodings.h/home/ayounes/devel/lyx/maingit/src/LaTeX.h/home/ayounes/devel/lyx/maingit/src/BufferParams.h/home/ayounes/devel/lyx/maingit/src/TexRow.h/home/ayounes/devel/lyx/maingit/src/DispatchResult.h/home/ayounes/devel/lyx/maingit/src/output_latex.h/home/ayounes/devel/lyx/maingit/src/KeySequence.h/home/ayounes/devel/lyx/maingit/src/Changes.h/home/ayounes/devel/lyx/maingit/src/BiblioInfo.h/home/ayounes/devel/lyx/maingit/src/pch.h/home/ayounes/devel/lyx/maingit/src/KeyMap.h/home/ayounes/devel/lyx/maingit/src/DocumentClassPtr.h/home/ayounes/devel/lyx/maingit/src/TextClass.h/home/ayounes/devel/lyx/maingit/src/VSpace.h/home/ayounes/devel/lyx/maingit/src/WordLangTuple.h/home/ayounes/devel/lyx/maingit/src/Converter.h/home/ayounes/devel/lyx/maingit/src/ConverterCache.h/home/ayounes/devel/lyx/maingit/src/Format.h/home/ayounes/devel/lyx/maingit/src/CompletionList.h/home/ayounes/devel/lyx/maingit/src/Language.h/home/ayounes/devel/lyx/maingit/src/ModuleList.h/home/ayounes/devel/lyx/maingit/src/ParagraphMetrics.h/home/ayounes/devel/lyx/maingit/src/LyX.h/home/ayounes/devel/lyx/maingit/src/LaTeXPackages.h/home/ayounes/devel/lyx/maingit/src/MetricsInfo.h/home/ayounes/devel/lyx/maingit/src/DepTable.h/home/ayounes/devel/lyx/maingit/src/InsetIterator.h/home/ayounes/devel/lyx/maingit/src/version.h/home/ayounes/devel/lyx/maingit/src/FontEnums.h/home/ayounes/devel/lyx/maingit/src/HSpace.h/home/ayounes/devel/lyx/maingit/src/Font.h/home/ayounes/devel/lyx/maingit/src/LayoutEnums.h/home/ayounes/devel/lyx/maingit/src/ParIterator.h/home/ayounes/devel/lyx/maingit/src/Mover.h/home/ayounes/devel/lyx/maingit/src/SpellChecker.h/home/ayounes/devel/lyx/maingit/src/LayoutModuleList.h/home/ayounes/devel/lyx/maingit/src/BufferList.h/home/ayounes/devel/lyx/maingit/src/OutputParams.h/home/ayounes/devel/lyx/maingit/src/BufferView.h/home/ayounes/devel/lyx/maingit/src/factory.h/home/ayounes/devel/lyx/maingit/src/FuncCode.h/home/ayounes/devel/lyx/maingit/src/Graph.h/home/ayounes/devel/lyx/maingit/src/IndicesList.h/home/ayounes/devel/lyx/maingit/src/FuncStatus.h/home/ayounes/devel/lyx/maingit/src/Author.h/home/ayounes/devel/lyx/maingit/src/ServerSocket.h/home/ayounes/devel/lyx/maingit/src/Row.h/home/ayounes/devel/lyx/maingit/src/Spacing.h/home/ayounes/devel/lyx/maingit/src/LyXVC.h/home/ayounes/devel/lyx/maingit/src/BranchList.h/home/ayounes/devel/lyx/maingit/src/Dimension.h/home/ayounes/devel/lyx/maingit/src/LaTeXFeatures.h/home/ayounes/devel/lyx/maingit/src/Session.h/home/ayounes/devel/lyx/maingit/src/Exporter.h/home/ayounes/devel/lyx/maingit/src/output_plaintext.h/home/ayounes/devel/lyx/maingit/src/CmdDef.h/home/ayounes/devel/lyx/maingit/src/Undo.h/home/ayounes/devel/lyx/maingit/src/FloatList.h/home/ayounes/devel/lyx/maingit/src/output_xhtml.h/home/ayounes/devel/lyx/maingit/src/FontList.h/home/ayounes/devel/lyx/maingit/src/Color.h/home/ayounes/devel/lyx/maingit/src/Counters.h/home/ayounes/devel/lyx/maingit/src/sgml.h/home/ayounes/devel/lyx/maingit/src/ParagraphList.h/home/ayounes/devel/lyx/maingit/src/Layout.h/home/ayounes/devel/lyx/maingit/src/lyxfind.h/home/ayounes/devel/lyx/maingit/src/TocBackend.h/home/ayounes/devel/lyx/maingit/src/Bidi.h/home/ayounes/devel/lyx/maingit/src/CutAndPaste.h/home/ayounes/devel/lyx/maingit/src/LyXAction.h/home/ayounes/devel/lyx/maingit/src/VCBackend.h/home/ayounes/devel/lyx/maingit/INSTALL.MacOSX/home/ayounes/devel/lyx/maingit/
configure.ac/home/ayounes/devel/lyx/maingit/CMakeLists.txt/home/ayounes/devel/lyx/maingit/README.Cygwin/home/ayounes/devel/lyx/maingit/README/home/ayounes/devel/lyx/maingit/UPGRADING/home/ayounes/devel/lyx/maingit/ANNOUNCE/home/ayounes/devel/lyx/maingit/.gitignore/home/ayounes/devel/lyx/maingit/autogen.sh/home/ayounes/devel/lyx/maingit/lyx.1in/home/ayounes/devel/lyx/maingit/Makefile.am/home/ayounes/devel/lyx/maingit/COPYING/home/ayounes/devel/lyx/maingit/INSTALL/home/ayounes/devel/lyx/maingit/RELEASE-NOTES/home/ayounes/devel/lyx/maingit/INSTALL.cmake/home/ayounes/devel/lyx/maingit/CMakeLists.txt.user/home/ayounes/devel/lyx/maingit/README.localization/home/ayounes/devel/lyx/maingit/NEWS/home/ayounes/devel/lyx/maingit/INSTALL.autoconf/home/ayounes/devel/lyx/maingit/README.Win32/home/ayounes/devel/lyx/maingit/INSTALL.Win32/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/PyCompile.cmake/home/ayounes/devel/lyx/maingit/development/cmake/lyx_date.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/ConfigureChecks.cmake/home/ayounes/devel/lyx/maingit/development/cmake/Install.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.cpp.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configFunctions.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyxPackaging.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configIncludes.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/PyCompile.cmake/home/ayounes/devel/lyx/maingit/development/cmake/lyx_date.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/ConfigureChecks.cmake/home/ayounes/devel/lyx/maingit/development/cmake/Install.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.cpp.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configFunctions.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyxPackaging.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configIncludes.cmake/home/ayounes/devel/lyx/maingit/development/cmake/pcheaders.h/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/PyCompile.cmake/home/ayounes/devel/lyx/maingit/development/cmake/lyx_date.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/ConfigureChecks.cmake/home/ayounes/devel/lyx/maingit/development/cmake/Install.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.cpp.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configFunctions.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyxPackaging.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configIncludes.cmake/home/ayounes/devel/lyx/maingit/development/cmake/pcheaders.h/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.msvc/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/PyCompile.cmake/home/ayounes/devel/lyx/maingit/development/cmake/lyx_date.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/ConfigureChecks.cmake/home/ayounes/devel/lyx/maingit/development/cmake/Install.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.cpp.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configFunctions.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyxPackaging.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configIncludes.cmake/home/ayounes/devel/lyx/maingit/development/cmake/pcheaders.h/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.msvc/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindICONV.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXPaths.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindQt4.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/MacroBoolTo01.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/PCHSupport_26.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXuic.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXMacros.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindHunspell.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/ProjectSourceGroup.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindOpenSSL.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindZLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindMagic.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindASPELL.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindGNUWIN32.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindAiksaurusLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindEnchant.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindLyXGettext.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindMyThesLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindCXX11Compiler.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyX_license.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_description.txt/home/ayounes/devel/lyx/maingit/development/cmake/LyX_summary.txt/home/ayounes/devel/lyx/maingit/development/cmake/TODO.txt/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/PyCompile.cmake/home/ayounes/devel/lyx/maingit/development/cmake/lyx_date.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/ConfigureChecks.cmake/home/ayounes/devel/lyx/maingit/development/cmake/Install.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.h.cmake/home/ayounes/devel/lyx/maingit/development/cmake/config.cpp.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configFunctions.cmake/home/ayounes/devel/lyx/maingit/development/cmake/LyxPackaging.cmake/home/ayounes/devel/lyx/maingit/development/cmake/configIncludes.cmake/home/ayounes/devel/lyx/maingit/development/cmake/pcheaders.h/home/ayounes/devel/lyx/maingit/development/cmake/configCompiler.h.msvc/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindICONV.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXPaths.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindQt4.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/MacroBoolTo01.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/PCHSupport_26.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXuic.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/LyXMacros.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindHunspell.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/ProjectSourceGroup.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindOpenSSL.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindZLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindMagic.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindASPELL.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindGNUWIN32.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindAiksaurusLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindEnchant.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindLyXGettext.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindMyThesLIB.cmake/home/ayounes/devel/lyx/maingit/development/cmake/modules/FindCXX11Compiler.cmake/home/ayounes/devel/lyx/maingit/development/cmake/scripts/LyXCreateImagesResource.cmake/home/ayounes/devel/lyx/maingit/development/cmake/scripts/LyXGetVersion.cmake/home/ayounes/devel/lyx/maingit/lib/ui/stdtoolbars.inc/home/ayounes/devel/lyx/maingit/lib/ui/default.ui/home/ayounes/devel/lyx/maingit/lib/ui/stdcontext.inc/home/ayounes/devel/lyx/maingit/lib/ui/stdmenus.inc
Post by Abdelrazak Younes
By the way, I just run "cmake .." without any argument, is this good
enough
Post by Abdelrazak Younes
those days?
No. But since some values will be used from cache, so it may fit.
This was a fresh checkout, so no cache. My question was about make sure I
don't miss important cmake definitions.

Thanks,
Abdel.
Kornel Benko
2014-05-10 22:22:09 UTC
Permalink
Post by Abdelrazak Younes
Am Samstag, 10. Mai 2014 um 18:32:13, schrieb Abdelrazak Younes <
Post by Abdelrazak Younes
Hi guys,
Just checked out feature/str-metrics and I got some warning when running
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this
warning.
Post by Abdelrazak Younes
Target "lyx2.2" links to target "Qt5::Concurrent" but the target was
not
Post by Abdelrazak Younes
found. Perhaps a find_package() call is missing for an IMPORTED
target,
Post by Abdelrazak Younes
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
I don't see it. But I don't have Qt5 anyway.
I use Qt4.8 but Qt5 is also installed I think but only the runtime not the
devel package.
Maybe this is the cause of the warning
'Target "lyx2.2" links to target "Qt5::Concurrent"',
Could you install the Qt5 devel?
Please notice that I am guessing only and cannot verify.
Post by Abdelrazak Younes
Could you display the command arguments of add_executable on line 106?
message(STATUS ${_lyx}
${WIN32_CONSOLE}
${LYX_BUILD_BUNDLE}
${lyx_sources}
${lyx_headers}
${vld_files}
${FILE_RC}
${lyx_info_files}
${lyx_cmake_files}
${OSX_BUNDLE_FILES}
)
To see, where is the colon inserted?
Nothing special in it. Especially no colon ':'.
Are you using new cmake ( >= 3.0)?
Post by Abdelrazak Younes
Post by Abdelrazak Younes
By the way, I just run "cmake .." without any argument, is this good
enough
Post by Abdelrazak Younes
those days?
No. But since some values will be used from cache, so it may fit.
This was a fresh checkout, so no cache. My question was about make sure I
don't miss important cmake definitions.
You do miss some.
LYX_CPACK, LYX_ASPELL, LYX_ENCHANT, LYX_HUNSPELL.

(If you don't use CPACK then at least use LYX_INSTALL option)
Post by Abdelrazak Younes
Thanks,
Abdel.
Kornel
Abdelrazak Younes
2014-05-11 07:57:17 UTC
Permalink
Am Samstag, 10. Mai 2014 um 22:26:24, schrieb Abdelrazak Younes <
Post by Abdelrazak Younes
Am Samstag, 10. Mai 2014 um 18:32:13, schrieb Abdelrazak Younes <
Post by Abdelrazak Younes
Hi guys,
Just checked out feature/str-metrics and I got some warning when
running
Post by Abdelrazak Younes
Post by Abdelrazak Younes
Policy CMP0028 is not set: Double colon in target name means ALIAS
or
Post by Abdelrazak Younes
Post by Abdelrazak Younes
IMPORTED target. Run "cmake --help-policy CMP0028" for policy
details.
Post by Abdelrazak Younes
Post by Abdelrazak Younes
Use the cmake_policy command to set the policy and suppress this
warning.
Post by Abdelrazak Younes
Target "lyx2.2" links to target "Qt5::Concurrent" but the target
was
Post by Abdelrazak Younes
not
Post by Abdelrazak Younes
found. Perhaps a find_package() call is missing for an IMPORTED
target,
Post by Abdelrazak Younes
or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
I don't see it. But I don't have Qt5 anyway.
I use Qt4.8 but Qt5 is also installed I think but only the runtime not
the
Post by Abdelrazak Younes
devel package.
Maybe this is the cause of the warning
'Target "lyx2.2" links to target "Qt5::Concurrent"',
Could you install the Qt5 devel?
I can't at this point for other project reasons, sorry.
Please notice that I am guessing only and cannot verify.
Post by Abdelrazak Younes
Could you display the command arguments of add_executable on line 106?
message(STATUS ${_lyx}
${WIN32_CONSOLE}
${LYX_BUILD_BUNDLE}
${lyx_sources}
${lyx_headers}
${vld_files}
${FILE_RC}
${lyx_info_files}
${lyx_cmake_files}
${OSX_BUNDLE_FILES}
)
To see, where is the colon inserted?
Nothing special in it. Especially no colon ':'.
Are you using new cmake ( >= 3.0)?
Yes, I forgot I was using a development version, sorry about that:
3.0.20140324-g4f419
Post by Abdelrazak Younes
Post by Abdelrazak Younes
By the way, I just run "cmake .." without any argument, is this good
enough
Post by Abdelrazak Younes
those days?
No. But since some values will be used from cache, so it may fit.
This was a fresh checkout, so no cache. My question was about make sure I
don't miss important cmake definitions.
You do miss some.
LYX_CPACK, LYX_ASPELL, LYX_ENCHANT, LYX_HUNSPELL.
(If you don't use CPACK then at least use LYX_INSTALL option)
Hunspell is installed on my system, why don't we pick that automatically?

Thanks,
Abdel.
Kornel Benko
2014-05-11 09:09:23 UTC
Permalink
Post by Abdelrazak Younes
Am Samstag, 10. Mai 2014 um 22:26:24, schrieb Abdelrazak Younes <
...
Post by Abdelrazak Younes
Post by Abdelrazak Younes
I use Qt4.8 but Qt5 is also installed I think but only the runtime not
the
Post by Abdelrazak Younes
devel package.
Maybe this is the cause of the warning
'Target "lyx2.2" links to target "Qt5::Concurrent"',
Could you install the Qt5 devel?
I can't at this point for other project reasons, sorry.
You could manually edit also the CMakeCache.txt.
Replace the used Qt5 libs with the Qt4 libs. They should be the same as
in CMakeCache.txtx for lyx2.1.

...
Post by Abdelrazak Younes
3.0.20140324-g4f419
That's OK. Good to know someone is using it.

...
Post by Abdelrazak Younes
You do miss some.
LYX_CPACK, LYX_ASPELL, LYX_ENCHANT, LYX_HUNSPELL.
(If you don't use CPACK then at least use LYX_INSTALL option)
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
Post by Abdelrazak Younes
Thanks,
Abdel.
Kornel
Abdelrazak Younes
2014-05-11 09:16:55 UTC
Permalink
Post by Abdelrazak Younes
Post by Abdelrazak Younes
Post by Kornel Benko
You do miss some.
LYX_CPACK, LYX_ASPELL, LYX_ENCHANT, LYX_HUNSPELL.
(If you don't use CPACK then at least use LYX_INSTALL option)
Hunspell is installed on my system, why don't we pick that
automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.

Abdel.
Scott Kostyshak
2014-05-11 09:23:27 UTC
Permalink
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that
automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.

Scott
Abdelrazak Younes
2014-05-11 09:55:38 UTC
Permalink
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.

Abdel
Kornel Benko
2014-05-11 10:38:25 UTC
Permalink
Post by Abdelrazak Younes
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Post by Abdelrazak Younes
Abdel
Kornel
Stephan Witt
2014-05-11 16:11:44 UTC
Permalink
Post by Kornel Benko
Post by Abdelrazak Younes
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?

Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.

Stephan
Kornel Benko
2014-05-11 16:15:22 UTC
Permalink
Post by Stephan Witt
Post by Kornel Benko
Post by Abdelrazak Younes
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?
Sure. Like this
message(FATAL_ERROR "You are leaving the moon atmosphere")
Post by Stephan Witt
Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.
Stephan
Kornel
Kornel Benko
2014-05-11 16:43:16 UTC
Permalink
Post by Kornel Benko
Post by Stephan Witt
Post by Kornel Benko
Post by Abdelrazak Younes
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?
Sure. Like this
message(FATAL_ERROR "You are leaving the moon atmosphere")
Post by Stephan Witt
Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.
Stephan
What about the attached?

Kornel
Stephan Witt
2014-05-11 19:52:36 UTC
Permalink
Post by Kornel Benko
Post by Kornel Benko
Post by Stephan Witt
Post by Kornel Benko
Post by Abdelrazak Younes
Post by Scott Kostyshak
Post by Abdelrazak Younes
Post by Kornel Benko
Post by Abdelrazak Younes
Hunspell is installed on my system, why don't we pick that automatically?
Good question. But which one to select, if also the other are installed?
There may be a reason why someone does not want a specific lib.
I would say by order of preference check hunspell, then enchant, then
aspell.
Regardless of the order (e.g. even if Enchant is prioritized), it
would be nice to fill in the path in Preferences > Paths so that if
the user wants to use Hunspell all he has to do is change the
spellchecker.
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?
Sure. Like this
message(FATAL_ERROR "You are leaving the moon atmosphere")
Post by Stephan Witt
Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.
Stephan
What about the attached?
Kornel<CMakeLists.txt.patch>
I'd like to terminate if there is no spell checker and it's not said to ignore this.
The LYX_ options aren't three state. So this is possible only with a check for another
option, right? Then I'd prefer to give the hint at a more prominent location.

Alternative patch is attached.

Stephan
Kornel Benko
2014-05-11 20:34:56 UTC
Permalink
...
Post by Stephan Witt
Post by Kornel Benko
Post by Kornel Benko
Post by Stephan Witt
Post by Kornel Benko
Post by Abdelrazak Younes
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?
Sure. Like this
message(FATAL_ERROR "You are leaving the moon atmosphere")
Post by Stephan Witt
Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.
Stephan
What about the attached?
Kornel<CMakeLists.txt.patch>
I'd like to terminate if there is no spell checker and it's not said to ignore this.
The LYX_ options aren't three state. So this is possible only with a check for another
option, right?
Yes.
Post by Stephan Witt
Then I'd prefer to give the hint at a more prominent location.
Alternative patch is attached.
Stephan
Yes, better place for the message. But the option is missing.

Kornel
Stephan Witt
2014-05-12 05:35:36 UTC
Permalink
Post by Kornel Benko
...
Post by Stephan Witt
Post by Kornel Benko
Post by Kornel Benko
Post by Stephan Witt
Post by Kornel Benko
Post by Abdelrazak Younes
Indeed, AFAIR we can compile concurrent support for all 3 spellers so if
the development packages are found we should use them.
If that is the consent, OK. But what to do, if no spellchecker is found?
* Abort
* Drop a message only
* Silently ignore
Is it possible to abort if no command line switch is given to disable them?
Sure. Like this
message(FATAL_ERROR "You are leaving the moon atmosphere")
Post by Stephan Witt
Many users are asking for spell checker support but don't install any developer
package for spell checking and are baffled later about getting no spell checker.
It would be good to abort then with a helpful error message, IMHO.
Stephan
What about the attached?
Kornel<CMakeLists.txt.patch>
I'd like to terminate if there is no spell checker and it's not said to ignore this.
The LYX_ options aren't three state. So this is possible only with a check for another
option, right?
Yes.
Post by Stephan Witt
Then I'd prefer to give the hint at a more prominent location.
Alternative patch is attached.
Stephan
Yes, better place for the message. But the option is missing.
Yes, I didn't insist to abort. What's your opinion?

Stephan
Kornel Benko
2014-05-12 07:51:24 UTC
Permalink
Post by Stephan Witt
Post by Kornel Benko
Post by Stephan Witt
I'd like to terminate if there is no spell checker and it's not said to ignore this.
The LYX_ options aren't three state. So this is possible only with a check for another
option, right?
Yes.
Post by Stephan Witt
Then I'd prefer to give the hint at a more prominent location.
Alternative patch is attached.
Stephan
Yes, better place for the message. But the option is missing.
Yes, I didn't insist to abort. What's your opinion?
I don't insist either. The behaviour until now was to do nothing.
Therefore the new option should start with default not to abort (if any option).

Proposing the name as LYX_REQUIRE_SPELLCHECK.

Kornel

Loading...