Re: [CMake] ExternalProject with target_link_library produces incorrect linking?

2014-12-09 Thread J. Caleb Wherry
Works like a charm, I knew I was overlooking something small. Thanks, Brad! -Caleb On Tue, Dec 9, 2014 at 2:30 PM, Brad King wrote: > On 12/09/2014 12:26 PM, J. Caleb Wherry wrote: > > add_library(ExtLib SHARED IMPORTED) > > set_property(TARGET ExtLib PROPERTY IMPORTED_LOCATION > "${CMAKE_BINAR

Re: [CMake] ExternalProject with target_link_library produces incorrect linking?

2014-12-09 Thread Brad King
On 12/09/2014 12:26 PM, J. Caleb Wherry wrote: > add_library(ExtLib SHARED IMPORTED) > set_property(TARGET ExtLib PROPERTY IMPORTED_LOCATION > "${CMAKE_BINARY_DIR}/${EXT_LIB_NAME}") > add_dependencies(ExtLib ExtLibBuild) Thanks for the complete/simple example. The problem is that the libExtLib.s

[CMake] ExternalProject with target_link_library produces incorrect linking?

2014-12-09 Thread J. Caleb Wherry
Let's try again... I submitted a question last week but got no responses so I have assumed my question and/or example was not explicit enough. I have stripped out all unnecessary structure from the code and am posing the question better (I hope)... The functionality that I am using is expressed i