[CMake] Problem on the Mac with setting CMAKE_CXX_LINK_EXECUTABLE

Carminati Federico Federico.Carminati at cern.ch
Wed Jul 16 06:59:38 EDT 2008


Hello Sean,
   thanks for your answer. Till 10.4 you could not specify the - 
undefined dynamic_lookup, you had to set the MACOSX_DEPLOYMENT_TARGET  
variable to something larger than 10.3. This is the line I had in my  
makefile, but I see no way to make this work with cmake. Even if I  
simply set

"MACOSX_DEPLOYMENT_TARGET=10.5 g++"

as linker, it still tells me "No such file or directory", while the  
same command works at the command line. Best regards,

Federico Carminati
CERN-PH
1211 Geneva 23
Switzerland
Tel: +41 22 76 74959
Fax: +41 22 76 79480
Mobile: +41 76 487 4843

On 14 Jul 2008, at 19:28, Sean McBride wrote:

> On 7/14/08 4:44 PM, Carminati Federico said:
>
>>   I would like to use the followig setting on the Mac
>>
>>  Set(CMAKE_CXX_LINK_EXECUTABLE
>>    "export MACOSX_DEPLOYMENT_TARGET=${MACOSX_MAJOR}.${MACOSX_MINOR};
>> unset LD_PREBIND ; ${CMAKE_CXX_LINK_EXECUTABLE}")
>>
>> But unfortunately it does not seem to work. The link command fails  
>> with
>>
>> Error running link command: No such file or directory
>
> I'm not really sure what you're talking about, but if you're trying to
> set the deployment target, I suggest you use the method described  
> here:
> <http://public.kitware.com/Bug/view.php?id=6195>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>



More information about the CMake mailing list