<p>In <a href="https://github.com/mlpack/mlpack/pull/618#discussion_r59879848">src/mlpack/methods/neighbor_search/CMakeLists.txt</a>:</p>
<pre style='color:#555'>> +target_link_libraries(mlpack_knn
> + mlpack
> +)
> +
> +add_executable(mlpack_kfn
> + allkfn_main.cpp
> +)
> +target_link_libraries(mlpack_kfn
> + mlpack
> +)
> +
> +install(TARGETS mlpack_knn mlpack_kfn RUNTIME DESTINATION bin)
> +
> +# -- mlpack_knn/mlpack_kfn compatibility start --
> +# make a copy of mlpack_knn/mlpack_kfn both on Windows and *unix for compatibility
> +# should be removed in future release
</pre>
<p>This will compile the knn and kfn executables twice, do you think there is an easier CMake way to just make a copy or symlink of the programs?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/618/files/f13409cf7fe651b42d59e0caad4fc0a7b8aea40f#r59879848">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOY2l_tVHsZ5XSJH32Ydrcjfig_Dks5p35zbgaJpZM4IIT2r.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/618/files/f13409cf7fe651b42d59e0caad4fc0a7b8aea40f#r59879848"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>