Nicholas Yue schrieb: > Hi, > > I am attempting to migrate the ANN build to CMake for my own ease of > cross platform maintenance. > > The cmake configuration works fine on OSX but have problem Windows > because of the additional linkage requirement. > > I understand that there is no per target DEFINITIONS setup so I'd like > to hear advice from experience cmake user how I should configure my build. > > The library needs the -DDLL_EXPORT while the application must not have > that set so that it imports the exported symbols. > > At the moment, my build fails at the ann_test target because it > inherits the -DDLL_EXPORT flag from the top. > You can you set_target_properties for this. E.g.: set_target_properties(kdewin32 PROPERTIES DEFINE_SYMBOL MAKE_KDEWIN32_LIB )
HTH Christian Ehrlicher _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
