I've got a main project which relies on several sub-library projects, so
the main CMakeLists.txt
add_subdirectory("W:/Omega/Kernel" "${CMAKE_CURRENT_BINARY_DIR}/myLib1")
...........
and then I also specify the directory where all libraries have been
built (by setting ARCHIVE_OUTPUT_DIRECTORY for each library)
link_directories("${ROOT_LIB}/{CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}")
Anyway I noticed that the build process works fine also without
declaring the row above.
My question: is specifying link_directories useless when I use
add_subdirectory in order to build a library? If yes, is that true
regardless the target (I only tested it in VS2010 and MinGW)?
Cheers
_______________________________________________
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