I am trying to get a library to build both static and dynamic libraries
to build in a project. It works except for the Visual C++ case, where
there is a name collision. I have tried several things including the
suggestion in the FAQ to add a PREFIX to one of the libraries. Here is
a section of my generated FLTK-Targets.cmake...
################
# Import target "fltk_z" for configuration "Debug"
set_property(TARGET fltk_z APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(fltk_z PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
IMPORTED_LOCATION_DEBUG
"C:/Users/msurette/Documents/software/test-vc/lib/Debug/fltk_zd.lib"
)
# Import target "fltk_z_SHARED" for configuration "Debug"
set_property(TARGET fltk_z_SHARED APPEND PROPERTY
IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(fltk_z_SHARED PROPERTIES
IMPORTED_IMPLIB_DEBUG
"C:/Users/msurette/Documents/software/test-vc/lib/Debug/fltk_zd.lib"
IMPORTED_LOCATION_DEBUG
"C:/Users/msurette/Documents/software/test-vc/lib/Debug/libfltk_zd.dll"
)
################
As you can see the prefix is added to the dll file just fine, but not to
the link library, which is where it's actually needed.
Any insights as to what is happening and what can be done to remedy the
situation.
Thanks for any help.
Mike
--
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:
http://www.cmake.org/mailman/listinfo/cmake