mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Detect and document macOS High Sierra
Fix old CMAKE flag for Eclipse (from ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT to ECLIPSE_GENERATE_SOURCE_PROJECT)
This commit is contained in:
		| @@ -214,15 +214,21 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |||||||
|      message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on ${LINUX_DISTRIBUTION} GNU/Linux Release ${LINUX_VER} ${ARCH_}") |      message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on ${LINUX_DISTRIBUTION} GNU/Linux Release ${LINUX_VER} ${ARCH_}") | ||||||
| endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||||
|  |  | ||||||
| # Detect Mac OS X Version | # Detect macOS / Mac OS X Version | ||||||
| if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||||||
|      set(OperatingSystem "Mac OS X") |      set(OperatingSystem "Mac OS X") | ||||||
|      set(OS_IS_MACOSX TRUE) |      set(OS_IS_MACOSX TRUE) | ||||||
|      exec_program(uname ARGS -v  OUTPUT_VARIABLE DARWIN_VERSION) |      exec_program(uname ARGS -v  OUTPUT_VARIABLE DARWIN_VERSION) | ||||||
|      string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION}) |      string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION}) | ||||||
|  |      if(${DARWIN_VERSION} MATCHES "17") | ||||||
|  |          set(MACOS_HIGH_SIERRA TRUE) | ||||||
|  |          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14") | ||||||
|  |          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") | ||||||
|  |          message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on macOS High Sierra 10.13") | ||||||
|  |      endif(${DARWIN_VERSION} MATCHES "17") | ||||||
|      if(${DARWIN_VERSION} MATCHES "16") |      if(${DARWIN_VERSION} MATCHES "16") | ||||||
|          set(MACOS_SIERRA TRUE) |          set(MACOS_SIERRA TRUE) | ||||||
|          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11") |          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14") | ||||||
|          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") |          set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") | ||||||
|          message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on macOS Sierra 10.12") |          message(STATUS "Configuring GNSS-SDR v${VERSION} to be built on macOS Sierra 10.12") | ||||||
|      endif(${DARWIN_VERSION} MATCHES "16") |      endif(${DARWIN_VERSION} MATCHES "16") | ||||||
|   | |||||||
| @@ -291,7 +291,7 @@ GNSS-SDR comes with a library which is a module of the Vector-Optimized Library | |||||||
| If you are using Eclipse as your development environment, CMake can create the project for you. Type: | If you are using Eclipse as your development environment, CMake can create the project for you. Type: | ||||||
|  |  | ||||||
| ~~~~~~ | ~~~~~~ | ||||||
| $ cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_VERSION=3.7 -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8 ../ | $ cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_VERSION=4.5 . | ||||||
| ~~~~~~ | ~~~~~~ | ||||||
|  |  | ||||||
| and then import the created project file into Eclipse: | and then import the created project file into Eclipse: | ||||||
| @@ -413,7 +413,7 @@ More details can be found in our tutorial about [GNSS-SDR configuration options | |||||||
| --------- | --------- | ||||||
|  |  | ||||||
|  |  | ||||||
| ### macOS Sierra, Mac OS X 10.11 (El Capitan), 10.10 (Yosemite) and 10.9 (Mavericks). | ### macOS 10.13 (High Sierra) and 10.12 (Sierra), Mac OS X 10.11 (El Capitan), 10.10 (Yosemite) and 10.9 (Mavericks). | ||||||
|  |  | ||||||
| If you still have not installed [Xcode](http://developer.apple.com/xcode/ "Xcode"), do it now from the App Store (it's free). You will also need the Xcode Command Line Tools. Launch the Terminal, found in /Applications/Utilities/, and type: | If you still have not installed [Xcode](http://developer.apple.com/xcode/ "Xcode"), do it now from the App Store (it's free). You will also need the Xcode Command Line Tools. Launch the Terminal, found in /Applications/Utilities/, and type: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez