|
Notes |
|
|
(0039171)
|
|
Brad King
|
|
2015-07-27 11:08
|
|
The problem here:
https://github.com/facebook/wdt/blob/2e60ce04c9/CMakeLists.txt#L212 [^]
is that you are trying to link to library files generated by the external project from targets that have no dependency on it. You can use
add_dependencies(myexe myextproj)
to make sure the external project finishes building before your target tries to use it. |
|
|
|
(0039172)
|
|
Laurent Demailly
|
|
2015-07-28 02:56
|
|
Thanks a lot ! add_dependencies() fixed it - I (incorrectly) thought the reference to the project libraries implied that
we still have a weird -L ${BINARY_DIR} that is needed only for XCode (and cause warning for everybody else) but I will file a different issue about that (or ask the mailing list)
https://github.com/facebook/wdt/blob/master/CMakeLists.txt#L241 [^] |
|
|
|
(0039173)
|
|
Brad King
|
|
2015-07-28 08:34
|
|
Re 0015663:0039172: Great, I'm glad that worked. The reference to the external project library files is not enough to tell CMake that those files have anything to do with the external project target.
For this block:
> # ${BINARY_DIR}/libgmock.a works everywhere except xcode...
> # so ugly weird hack generating warnings about unknown dir for now:
> target_link_libraries(wdt4tests
> "-L ${BINARY_DIR} -L ${BINARY_DIR}/Debug -lgmock"
> wdtlib
> )
please ask on the mailing list. If no one responds after a day please find the post in the list archives:
http://public.kitware.com/pipermail/cmake/ [^]
and post a link to it back here to remind us. |
|
|
|
(0040098)
|
|
Robert Maynard
|
|
2016-01-04 11:51
|
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|