>What I don't understand is this: Why do you want to force the SDK? Shouldn't
>this be the worry of the person doing the build?
>
>If I download some open-source software and then build it for myself,
>I don't want to be forced in using the 10.4 SDK, I wan't to build against the
>greatest and la
No, I just renamed it in the posting wrong. Here's how it looks actually
CMakeLists.txt -- something like this
---
PROJECT(tiney)
FIND_PACKAGE(OpenGL)
FIND_PACKAGE(GLUT)
FIND_PACKAGE(GLEW)
...
IF(GLEW_FOUND)
SET(tiney_LIBS ${tiney_LIBS} ${GLEW_LIBRARY} )
ENDIF(GLEW_FOU
> ADD_EXECUTABLE(tiney ${program_SRCS})
> TARGET_LINK_LIBRARIES(program ${program_LIBS})
Are these the exact 2 lines? I mean you have tiney in one and program
in the other?
John
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
Hey, I was trying to use the TARGET_LINK_LIBRARIES in a CMakeLists.txt file but
the linking doesn't end up working. I am using cygwin and CMake 2.6.4
Currently, I am having trouble with the OpenGL libraries. It links GLUT but not
the OpenGL libraries.
CMakeLists.txt
...
FIND_P
Your first suggestion worked out fantastically.
Thanks,
Hai
On Fri, Mar 26, 2010 at 1:44 AM, Michael Wild wrote:
>
> On 26. Mar, 2010, at 9:23 , Micha Renner wrote:
>
> > Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild:
> >> On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote:
> >>
> >>>
On 27. Mar, 2010, at 16:53 , Simmons, Aaron wrote:
>> It is a common misconception that one needs to use the 10.4 SDK to
>> create an executable that is compatible with 10.4. This is not so.
>
> In most cases, you're right. However, we're linking to the iconv library.
> If we don't specify t
> It is a common misconception that one needs to use the 10.4 SDK to
> create an executable that is compatible with 10.4. This is not so.
In most cases, you're right. However, we're linking to the iconv library. If
we don't specify the 10.4 SDK via isysroot, it will link to the wrong version