Page 1 of 1

CMake: Bug in FindTET_CPPSDK.cmake?

PostPosted: 06 Oct 2015, 13:39
by paul.keir
I had thought that the CMake variable, TET_CPPSDK_GAZEAPI_LIB, would be set by FindTET_CPPSDK.cmake to the full filepath of GazeApiLib.lib.

Instead, using message (${TET_CPPSDK_GAZEAPI_LIB}) shows me this becomes the somewhat garbled:

optimizedC:/mypath/tet-cpp-client/lib/GazeApiLib.libdebugC:/mypath/tet-cpp-client/lib/GazeApiLibD.lib

This seems due to the last two SET invocations within the scope of the IF( WIN32 ) statement. If I comment these out, things look better. With message (${TET_CPPSDK_DEBUG_GAZEAPI_LIB}) and message (${TET_CPPSDK_GAZEAPI_LIB}) I now get:

C:/mypath/tet-cpp-client/lib/GazeApiLibD.lib
C:/mypath/tet-cpp-client/lib/GazeApiLib.lib

Is this a bug in FindTET_CPPSDK.cmake?

Re: CMake: Bug in FindTET_CPPSDK.cmake?

PostPosted: 07 Oct 2015, 13:21
by Martin
I have notified the developer of the C++ SDK - awaiting reply.

Re: CMake: Bug in FindTET_CPPSDK.cmake?

PostPosted: 07 Oct 2015, 14:07
by paul.keir
It may in fact be a convention adopted by some functions in CMake. FindBOOST.cmake, for example, also produces output such as this. There are basic, related issues I'm working through at the moment - I'll send an update when I get there.

Re: CMake: Bug in FindTET_CPPSDK.cmake?

PostPosted: 08 Oct 2015, 12:23
by Micky
No this is not a bug in the cmake FindTET_SDK script. This is the de facto standard on Win32 when using VC.