On 10/18/2011 8:21 AM, Anton Sibilev wrote:
Hi! Looking for some help..
I use add_executable(exename) + target_link_libraries (exename
staticlibname), linux OS. If 'staticlibname' is not under CMake and
chagnes somehow, CMake will not rebuild executable.
And so I have a problem, that I have few updates of 'staticlibname' lib,
but very old executable. Can I force to rebuild executable every build?


If you use the FULL path to staticlib (via find_library). Then it will rebuild when the file changes.

-Bill

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to