The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13869 
====================================================================== 
Reported By:                Albert A
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13869
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-01-23 04:01 EST
Last Modified:              2013-01-23 04:01 EST
====================================================================== 
Summary:                    Transitive external project dependency won't compile
under VS2012
Description: 
I have an external project defined as:

ExternalProject_Add(
    LibExternal
    ...
    )

add_library(libexternal STATIC IMPORTED GLOBAL)
set_property(TARGET libexternal PROPERTY
    IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libexternal.a)
add_dependencies(libexternal LibExternal)

Which I link to other project as:
target_link_libraries(lib1 libexternal)

And then to another:
target_link_libraries(lib2 lib1)

As expected the *.sln created for lib1 compiles LibExternal.

The *.sln created for lib2 has LibExternal in the build tree but it is not
checked for build in the Configuration Manager and therefore skipped during
build.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-01-23 04:01 Albert A       New Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to