Hi

 

I have a project with a shared library that depends on some external static
libraries. Those are CMake imported targets. It appears that my shared
library does not get rebuild when the external libraries are updated. (It
would need to be relinked). Is this expected?

 

A bit more info on my set-up:

CMake 3.8.0

Visual Studio Community 2015

 

Some content of my CMakeLists.txt (the external libraries are set in
$(STIR_LIBRARIES}). Full project is on https://github.com/CCPPETMR/SIRF/

 

# static library depending on external

add_library(cstir cstir_p.cpp)

target_link_libraries(cstir ${STIR_LIBRARIES})

 

# shared library depending on external (probably not necessary as depends on
cstir already)

add_library(mstir SHARED mstir.c)

target_link_libraries(mstir  cstir ${STIR_LIBRARIES})

 

When checking the Visual Studio project, mstir has a "Reference" to cstir,
but neither of them refers to any of the externals.

 

Thanks

Kris

-- 

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://public.kitware.com/mailman/listinfo/cmake

Reply via email to