Scott Aron Bloom <[email protected]>
writes:
> I just ran into this exact problem.
>
> For me it was the TCL shared library, the technique I used worked fine
> for windows and linux.
>
> Im not sure about OSX since you are running fixup_bundle..
>
> I also used an ADD_CUSTOM_COMMAND, but I simply did a copy of the
> shared library, and copied it into the ${CMAKE_CURRENT_BINARY_DIR}
>
> ADD_CUSTOM_COMMAND(
> TARGET testname
> POST_BUILD
> COMMAND ${CMAKE_COMMAND} -E copy ${TCL_SHARED_OPT}
> ${CMAKE_CURRENT_BINARY_DIR}
> )
Sorry for the SLOW reply.
This copy command works but now you still have to know the path
${TCL_SHARED_OPT}. How do you find it without hardcoding it? There's
no 'find' function in CMake for runtime binary dependencies.
Alex
--
Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake