CMake: Bug in FindTET_CPPSDK.cmake?

Forum to report issues and bugs on Windows 7, 8, and 10.

CMake: Bug in FindTET_CPPSDK.cmake?

Postby paul.keir » 06 Oct 2015, 13:39

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?
paul.keir
 
Posts: 2
Joined: 30 Apr 2015, 00:28

Re: CMake: Bug in FindTET_CPPSDK.cmake?

Postby Martin » 07 Oct 2015, 13:21

I have notified the developer of the C++ SDK - awaiting reply.
Martin
 
Posts: 567
Joined: 29 Oct 2013, 15:20

Re: CMake: Bug in FindTET_CPPSDK.cmake?

Postby paul.keir » 07 Oct 2015, 14:07

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.
paul.keir
 
Posts: 2
Joined: 30 Apr 2015, 00:28

Re: CMake: Bug in FindTET_CPPSDK.cmake?

Postby Micky » 08 Oct 2015, 12:23

No this is not a bug in the cmake FindTET_SDK script. This is the de facto standard on Win32 when using VC.
User avatar
Micky
 
Posts: 12
Joined: 05 Jan 2015, 16:23


Return to Issues and troubleshooting - Windows



cron