Fixed linking to gtsam library in examples

release/4.3a0
Richard Roberts 2013-03-13 18:36:25 +00:00
parent 74bb1ff9ae
commit 9223da18c9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ foreach(example_src ${example_srcs} )
set_target_properties(${example_bin} PROPERTIES EXCLUDE_FROM_ALL ON)
endif()
target_link_libraries(${example_bin} gtsam-static)
target_link_libraries(${example_bin} ${gtsam-default})
if(NOT MSVC)
add_custom_target(${example_bin}.run ${EXECUTABLE_OUTPUT_PATH}${example_bin} ${ARGN})
endif()