diff options
author | dundargoc <gocdundar@gmail.com> | 2024-03-02 11:20:02 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-03-03 12:46:39 +0100 |
commit | da2130934b95c4bc8a10266ef032d68a2014d1ea (patch) | |
tree | 96d42978a11b30bfd7665c9600e94d24c3334524 /CMakeLists.txt | |
parent | bf695b5ef436b9fb8cb0872b05aa2e0e5e2ee110 (diff) | |
download | rneovim-da2130934b95c4bc8a10266ef032d68a2014d1ea.tar.gz rneovim-da2130934b95c4bc8a10266ef032d68a2014d1ea.tar.bz2 rneovim-da2130934b95c4bc8a10266ef032d68a2014d1ea.zip |
build: don't allow Xcode as generator
Xcode does not allow having multiple targets depend on a custom command.
This limitation severely hinders its usability and complying with it
would likely require extensive refactoring and boilerplate. It makes
more sense to simply refer users to use "Ninja" or "Unix Makefiles"
instead.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b07443f770..009b562953 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,10 @@ if(POLICY CMP0135) cmake_policy(SET CMP0135 NEW) endif() +if(XCODE) + message(FATAL_ERROR [[Xcode generator is not supported. Use "Ninja" or "Unix Makefiles" instead.]]) +endif() + # Point CMake at any custom modules we may ship list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") |