[CMake] Dependency question

2011-10-28 Thread Robert Dailey
I'm using CMake 2.8.6 and generating for VS 2003. I have a DLL project that my EXE project needs to depend on, however I don't want my EXE to link against that DLL's import library, since the EXE will call LoadLibrary() to dynamically import symbols from the DLL being built. I want the EXE

Re: [CMake] Dependency question

2011-10-28 Thread David Cole
On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey rcdai...@gmail.com wrote: I'm using CMake 2.8.6 and generating for VS 2003. I have a DLL project that my EXE project needs to depend on, however I don't want my EXE to link against that DLL's import library, since the EXE will call LoadLibrary()

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
On Fri, Oct 28, 2011 at 12:25 PM, David Cole david.c...@kitware.com wrote: On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey rcdai...@gmail.com wrote: I'm using CMake 2.8.6 and generating for VS 2003. I have a DLL project that my EXE project needs to depend on, however I don't want my EXE to

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
I tested this and it works! I was using target_link_libraries() before which sets the dependency but also links it. I noticed that it creates a fubar_UTILITY project in addition to fubar project in my solution when I specify it in add_dependencies()... is this normal? What does the _UTILITY

Re: [CMake] Dependency question

2011-10-28 Thread David Cole
On Fri, Oct 28, 2011 at 1:52 PM, Robert Dailey rcdai...@gmail.com wrote: I tested this and it works! I was using target_link_libraries() before which sets the dependency but also links it. I noticed that it creates a fubar_UTILITY project in addition to fubar project in my solution when I