For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 3 4 6

cmake on ESDK package

when run cmake-H\Users\u8007876\Downloads\Elektron-SDK1.2.0.win\setup\Elektron-SDK1.2.0.win.rrg-Bcmake_vs2017, got errors (in place or in source is not allowed)

with latest cmake (v3.12.2)

elektronrefinitiv-realtimeelektron-sdkbuild
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
261 1 2 3

The ESDK 1.2 CMake does not support in-source builds for CMake. This is a pattern where the CMake generated output directory and the source directory is the same. This usage will clutter up the source tree with all of the CMake output(makefiles/vcxproj files, CMake's cache files, etc.), and is generally considered to be a bad practice.


The recommended build pattern is to use either an out-of-source build, where you create another directory for the CMake output, and run CMake there. Here is the official recommendation and usage pattern from kitware:

https://gitlab.kitware.com/cmake/community/wikis/FAQ#out-of-source-build-trees

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.