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.

@peng.tian

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hello @peng.tian

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

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.