diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-03 20:29:20 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-03 20:29:20 +0100 |
| commit | c55fd6f7045e8899f341f7a73c01e5749015bfc1 (patch) | |
| tree | 6fc2e5e527db1a0c7e6bbe490efd88ca5c03a870 /CMake | |
| parent | 36af6a57295a5f3c674134cab60dc644c96e97fa (diff) | |
CMake for Apple Xcode usability improvements
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/setup.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake index 2be2aacd5..84b3ebda4 100644 --- a/CMake/setup.cmake +++ b/CMake/setup.cmake @@ -68,6 +68,14 @@ endif (WIN32 AND NOT CYGWIN) include(TestBigEndian) TEST_BIG_ENDIAN(WORDS_BIGENDIAN) +if (CMAKE_GENERATOR MATCHES "Xcode") + if (${XCODE_VERSION} VERSION_GREATER_EQUAL 3.9) # CMake 3.9 and up + # Tell Xcode to regenerate scheme information automatically whenever the + # CMake configuartion changes without asking the user + set (CMAKE_XCODE_GENERATE_SCHEME 1) + endif() +endif() + if (APPLE) set (HAVE_STRCASECMP 1) set (HAVE_DIRENT_H 1) |
