mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
avoid CMAKE_XCODE_ATTRIBUTE_GCC_VERSION assignment for Xcode 5.0+
it is not needed anymore and the current assignment is wrong in this case
This commit is contained in:
parent
c1c35ca19e
commit
130ad13dee
@ -706,16 +706,17 @@ endif()
|
||||
|
||||
# Xcode compiler
|
||||
if (CMAKE_GENERATOR MATCHES Xcode)
|
||||
# Automatically select the Xcode compiler if not set
|
||||
if (NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION)
|
||||
# XCode >= 3.1 has gcc 4.2 (up to actual Xcode)
|
||||
if (XCODE_VERSION VERSION_GREATER "3.1")
|
||||
SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
|
||||
ENDIF(XCODE_VERSION VERSION_GREATER "3.1")
|
||||
ENDIF(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION)
|
||||
|
||||
# Print the selected compiler version
|
||||
MESSAGE(STATUS "---- Using XCode compiler CMAKE_XCODE_ATTRIBUTE_GCC_VERSION=${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION}")
|
||||
if (NOT XCODE_VERSION VERSION_GREATER "5.0")
|
||||
# Automatically select the Xcode compiler if not set
|
||||
if (NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION)
|
||||
# XCode >= 3.1 has gcc 4.2 (up to actual Xcode)
|
||||
if (XCODE_VERSION VERSION_GREATER "3.1")
|
||||
SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
|
||||
ENDIF(XCODE_VERSION VERSION_GREATER "3.1")
|
||||
ENDIF(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION)
|
||||
# Print the selected compiler version
|
||||
MESSAGE(STATUS "---- Using XCode compiler CMAKE_XCODE_ATTRIBUTE_GCC_VERSION=${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION}")
|
||||
ENDIF(NOT XCODE_VERSION VERSION_GREATER "5.0")
|
||||
ENDIF(CMAKE_GENERATOR MATCHES Xcode)
|
||||
|
||||
if (WIN32 AND Qt5Core_FOUND)
|
||||
|
Loading…
Reference in New Issue
Block a user