On Mon, Nov 24, 2008 at 2:41 PM, Michael Jackson < [EMAIL PROTECTED]> wrote:
> typically you do: > > add_executable(main main.cpp) > target_link_libraries(main a) > > and CMake _usually_ picks the correct library for the given platform > (a.lib, a.so, a.dylib... ) > > Is that what you were asking? Yes, you did answer my question exactly, however I did not specify the more complex issue. Some libraries we're using have different library names depending on the platform. For example: a_windows.lib a_linux.o This is why I believed I would need the conditional logic. What would you do in this case? Thanks for your help.
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake