Re: [CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
Jaun,

Thank you for pointing out that thread / issue.  It's a rather thread, but
s much I've what I'm experiencing is characterized in there.  I'll look
tomorrow and reply with results.

On Mon, Jun 3, 2019 at 5:27 PM Juan E. Sanchez 
wrote:

> Hello,
>
> According to this:
> https://github.com/neovim/neovim/issues/9050
>
> It looks like macOS made it so you have to do something like this:
> open
>
> /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
>
> for libraries and includes to be put into /usr.
>
> Regards,
>
> Juan
>
>
> On 6/3/19 5:16 PM, Bryan Christ wrote:
> > New to this mailing list so I hope I'm asking this in the right venue...
> >
> > I'm trying to port my application (a program and a shared library) to
> > OSX.  It was rather easy to modify my CMake script to go from Linux and
> > add in FreeBSD.  OSX is giving me a lot of problems though.
> >
> > First of all find_package() doesn't seem to find the ncurses.dylib
> > installed by XCode as it test for wsyncup().  For whatever reason, that
> > test fails.  The default location for the library is pretty sane
> > (/usr/lib/) but the include file for ncurses is about 9 directories deep
> > inside of XCode's install directory.  Lots of problems here so I decided
> > to look at the symbol linkage for htop and see what it does.  It links
> > to a different version that got pulled down via homebrew in
> > /usr/local/opt/ncurses/lib (and include respectively)
> >
> > Is there a way to force CMake to link to the library found there instead
> > of in /usr/lib/ ?
> >
> > --
> > Bryan
> > <><
> >
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake
>


-- 
Bryan
<><
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Linking on OSX

2019-06-03 Thread Juan E. Sanchez

Hello,

According to this:
https://github.com/neovim/neovim/issues/9050

It looks like macOS made it so you have to do something like this:
open 
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg


for libraries and includes to be put into /usr.

Regards,

Juan


On 6/3/19 5:16 PM, Bryan Christ wrote:

New to this mailing list so I hope I'm asking this in the right venue...

I'm trying to port my application (a program and a shared library) to 
OSX.  It was rather easy to modify my CMake script to go from Linux and 
add in FreeBSD.  OSX is giving me a lot of problems though.


First of all find_package() doesn't seem to find the ncurses.dylib 
installed by XCode as it test for wsyncup().  For whatever reason, that 
test fails.  The default location for the library is pretty sane 
(/usr/lib/) but the include file for ncurses is about 9 directories deep 
inside of XCode's install directory.  Lots of problems here so I decided 
to look at the symbol linkage for htop and see what it does.  It links 
to a different version that got pulled down via homebrew in 
/usr/local/opt/ncurses/lib (and include respectively)


Is there a way to force CMake to link to the library found there instead 
of in /usr/lib/ ?


--
Bryan
<><



--

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
New to this mailing list so I hope I'm asking this in the right venue...

I'm trying to port my application (a program and a shared library) to OSX.
It was rather easy to modify my CMake script to go from Linux and add in
FreeBSD.  OSX is giving me a lot of problems though.

First of all find_package() doesn't seem to find the ncurses.dylib
installed by XCode as it test for wsyncup().  For whatever reason, that
test fails.  The default location for the library is pretty sane
(/usr/lib/) but the include file for ncurses is about 9 directories deep
inside of XCode's install directory.  Lots of problems here so I decided to
look at the symbol linkage for htop and see what it does.  It links to a
different version that got pulled down via homebrew in
/usr/local/opt/ncurses/lib (and include respectively)

Is there a way to force CMake to link to the library found there instead of
in /usr/lib/ ?

-- 
Bryan
<><
-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Free CMake course during KHQ Summer courses July 22-25 2019

2019-06-03 Thread Robert Maynard via CMake
Hi All,

This summer between July 22 - 25th Kitware is offering 7 free courses
over 3 days at our new headquarters in Albany NY.  One of the free
courses we will be offering is a full day CMake course on Tuesday July
23rd. Hopefully some of you will be able to attend, and we can meet in
person.

Sign up for the courses at: https://forms.gle/4Lze8vXrZSyvxWVm6
You can find more information on each course at:
https://blog.kitware.com/events/free-vtk-js-girder-tomviz-vtk-paraview-and-cmake-courses-at-kitware-this-summer/

The 4 day overview schedule is:

Monday July 22:
- VTK.JS: https://kitware.github.io/vtk-js/
- Girder: https://girder.readthedocs.io/en/stable/

Tuesday July 23:
- CMake

Wednesday July 24:
- VTK: https://vtk.org/
- Tomviz: https://tomviz.org/

Thursday July 25
- ParaView: https://www.paraview.org
- CMB: https://www.computationalmodelbuilder.org/
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Question about running C code from within cmake

2019-06-03 Thread Eric Doenges
The easiest way to get the number of cores on your Windows build machine 
from within CMake is to get the value of the NUMBER_OF_PROCESSORS 
environment variable using $ENV{NUMBER_OF_PROCESSORS}.


Am 02.06.19 um 14:16 schrieb Steven Truppe:


Hi everyone,


i'm trying to search for a way for win32 to get the cpu core count. i 
found the c code:


|SYSTEM_INFO sysinfo;GetSystemInfo(&sysinfo);intnumCPU 
=sysinfo.dwNumberOfProcessors; Is there a way i can get the return 
value numCPU and create a variable out of it ? for apple and linux i 
allready have a solution only win32 is left. best regards! |



--

*Dr. Eric Dönges *
Senior Software Engineer

MVTec Software GmbH | Arnulfstr. 205 | 80634 Munich | Germany
doen...@mvtec.com  | Tel: +49 89 457 695-0 | 
www.mvtec.com 


Sign up  for our MVTec Newsletter!

Geschäftsführer: Dr. Wolfgang Eckstein, Dr. Olaf Munkelt
Amtsgericht München HRB 114695

MVTec Software GmbH Logo
-- 

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:
https://cmake.org/mailman/listinfo/cmake