﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3611	Mac build error: Unsupported version of OS X : 10.11.1	cxh@…	somebody	"While building from the GitHub repo, cmake fails under El Capitan (Mac OS X 10.11.1) while running ""make omc"":

{{{
...
mkdir -p ParadisEO-2.0.1/build
(cd ParadisEO-2.0.1/build && CC=""gcc"" CXX=""g++"" CFLAGS=""-I/opt/local/include"" CPPFLAGS="""" CXXFLAGS=""-g -O2"" c\
make ..)
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /Applications/Doxygen.app/Contents/Resources/doxygen (found version ""1.8.9.1"")
CMake Error at cmake/Config.cmake:11 (message):
  Unsupported version of OS X : 10.11.1

Call Stack (most recent call first):
  CMakeLists.txt:41 (include)


-- Configuring incomplete, errors occurred!
See also ""/Users/cxh/src/OpenModelica/OMOptim/ParadisEO-2.0.1/build/CMakeFiles/CMakeOutput.log"".
make[1]: *** [ParadisEO-2.0.1/build/Makefile] Error 1
make: *** [omoptim] Error 2
}}}

Solution: In OpenModelica/OMOptim/ParadisEO-2.0.1/cmake/Config.cmake, change:
{{{

     string(REGEX REPLACE ""10\\.([0-9]).*"" ""\\1"" MACOSX_VERSION ""${MACOSX_VERSION_RAW}"")
}}}
to:
{{{
     string(REGEX REPLACE ""10\\.([0-9]*).*"" ""\\1"" MACOSX_VERSION ""${MACOSX_VERSION_RAW}"") 
}}}"	defect	closed	normal	1.9.4	*unknown*		fixed	mac, cmake	
