Re: [CMake] CMake generates “-L/usr/local/lib” on Mac OSX

2015-08-25 Thread Oleg Zhylin via CMake
I confirmed there's nothing in $LD_LIBRARY_PATH  in both the environment where 
the build succeeds and where it fails. 
I will gladly try other suggestions. 

WBR Oleg Zhylin o...@yahoo.com 


 On Monday, August 24, 2015 12:16 PM, Gonzalo ggarr...@gmail.com wrote:
   

  
 
 El 24/08/15 a las 16:13, Oleg Zhylin escibió:
  
  Gonzalo, 
  Could you please elaborate, where should I check it?
   
 
 In the shell, do:
 
 echo $LD_LIBRARY_PATH 
 
 and check the directories.  I am not sure cmake pays attention to it, but I 
believe it might.
 
 

  -- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] CMake generates “-L/usr/local/lib” on Mac OSX

2015-08-24 Thread Oleg Zhylin via CMake
Gonzalo,
Could you please elaborate, where should I check it? Will CMake indeed generate 
-L/usr/local/lib argument for the linker if it sees something in 
LD_LIBRARY_PATH?
Do you have any insight why other flags (-arch, -isysroot) get generated in one 
environment, but not the other? 
 WBR Oleg Zhylin o...@yahoo.com 


 On Sunday, August 23, 2015 8:10 PM, Oleg Zhylin o...@yahoo.com wrote:
   

 I have a CMake C++ dylib project that builds correctly in one MacOS X 
environment but fails in another. Environments are on the same machine, but 
under different users. I'm seeking help how to do I troubleshoot where the 
failure in the second one comes from.What I managed to figure out is that in 
failing configuration CMake adds the following flags in link.txt (the commands 
used to link the executable)-arch x86_64

-isysroot  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

-mmacosx-version-min=10.6

-L/usr/local/lib
The last one causes havoc as it makes ld pick up dependencies from 
/usr/local/lib instead of link directories I configured in CMake.I would 
appreciate any insight what triggers generating the flags above and what is the 
best way to squelch them, especially -L/usr/local/lib? WBR Oleg Zhylin 
o...@yahoo.com

  -- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] CMake generates “-L/usr/local/lib” on Mac OSX

2015-08-24 Thread Gonzalo



El 24/08/15 a las 16:13, Oleg Zhylin escibió:

Gonzalo,

Could you please elaborate, where should I check it?


In the shell, do:

echo $LD_LIBRARY_PATH

and check the directories.  I am not sure cmake pays attention to it, 
but I believe it might.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] CMake generates “-L/usr/local/lib” on Mac OSX

2015-08-23 Thread Oleg Zhylin via CMake
I have a CMake C++ dylib project that builds correctly in one MacOS X 
environment but fails in another. Environments are on the same machine, but 
under different users. I'm seeking help how to do I troubleshoot where the 
failure in the second one comes from.What I managed to figure out is that in 
failing configuration CMake adds the following flags in link.txt (the commands 
used to link the executable)-arch x86_64

-isysroot  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

-mmacosx-version-min=10.6

-L/usr/local/lib
The last one causes havoc as it makes ld pick up dependencies from 
/usr/local/lib instead of link directories I configured in CMake.I would 
appreciate any insight what triggers generating the flags above and what is the 
best way to squelch them, especially -L/usr/local/lib? WBR Oleg Zhylin 
o...@yahoo.com-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake