[cmake-developers] [CMake 0013869]: Transitive external project dependency won't compile under VS2012

Mantis Bug Tracker mantis at public.kitware.com
Wed Jan 23 04:01:37 EST 2013


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                                    
======================================================================




More information about the cmake-developers mailing list