veselink1 / refl-cpp

Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).
https://veselink1.github.io/refl-cpp/md__introduction.html
MIT License
1.05k stars 76 forks source link

Prevent in-source builds #48

Closed friendlyanon closed 3 years ago

friendlyanon commented 3 years ago

Related: https://github.com/veselink1/refl-cpp/pull/47#discussion_r606757953

veselink1 commented 3 years ago

Great! I might tweak the message a bit.

friendlyanon commented 3 years ago

What would you like to see in the message?

veselink1 commented 3 years ago
FATAL: In-source builds are not supported.

Make a new directory (e.g., 'build/'), and run CMake from there.  You may
need to delete 'CMakeCache.txt' and 'CMakeFiles/'.

This.

I will change it and merge this PR in a bit.

veselink1 commented 3 years ago

Unintentionally merged this before the refactor in #46 !

friendlyanon commented 3 years ago

That PR already does out-of-source builds :)