norlab-ulaval / libnabo

A fast K Nearest Neighbor library for low-dimensional spaces

Home Page:http://norlab-ulaval.github.io/libnabo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with CMake 2.8.11.2

pomerlef opened this issue · comments

On CMake 2.8.11.2 (Windows version). I received the following error:

CMake Error at CMakeLists.txt:93 (set_target_properties):
    set_target_properties called with incorrect number of arguments.

This seems to resolve the issue:

on https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L93

Change to add quotes:

set_target_properties(${LIB_NAME} PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION 1)

Solution from : http://stackoverflow.com/questions/3221996/set-target-properties-called-with-incorrect-number-of-arguments

I have applied the fix you proposed in commit a253965, but the best would be to have grep installed. It is available here: http://gnuwin32.sourceforge.net/packages/grep.htm.