----- Mail original ----- > De: "Roger Leigh" <[email protected]> > À: "Franck Houssen" <[email protected]> > Cc: [email protected] > Envoyé: Dimanche 7 Janvier 2018 18:14:04 > Objet: Re: [CMake] CMake: using dlopen
> -------- Original message -------- > From: Franck Houssen <[email protected]> > Date: 07/01/2018 13:58 (GMT+00:00) > To: Roger Leigh <[email protected]> > Cc: [email protected] > Subject: Re: [CMake] CMake: using dlopen > > OK, thanks. So, I go with: target_link_libraries(main PUBLIC ... > > ${CMAKE_DL_LIBS}) > Use PRIVATE if it is not used in any headers--it's an internal implementation > detail. Difference between PUBLIC/PRIVATE has never been clear to me (usually I always use PUBLIC). main.cpp includes dlfcn.h and uses it: not sure to get what you meant (PRIVATE is for templates ? when a header include headers ?) > Regards, > Roger
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
