question

Upvotes
Accepted
21 2 3 4

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 5.0 MiB each and 10.0 MiB total.

1 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea