[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.3 1.4 imp_testExe1.c 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Sep 1 10:38:39 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/ExportImport/Import/A
In directory public:/mounts/ram/cvs-serv2363/Tests/ExportImport/Import/A

Modified Files:
	CMakeLists.txt imp_testExe1.c 
Log Message:
Test link multiplicity export/import

We test that LINK_INTERFACE_MULTIPLICITY propagates through export() and
install(EXPORT) into dependent projects.  A simple cycle of two archives
that need to be scanned three times ensures that the importing project
uses the multiplicity correctly.


Index: imp_testExe1.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ExportImport/Import/A/imp_testExe1.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** imp_testExe1.c	11 Jul 2009 14:10:51 -0000	1.3
--- imp_testExe1.c	1 Sep 2009 14:38:36 -0000	1.4
***************
*** 7,10 ****
--- 7,11 ----
  extern int testLib5();
  extern int testLib6();
+ extern int testLibCycleA1();
  
  /* Switch a symbol between debug and optimized builds to make sure the
***************
*** 20,24 ****
  {
    return (testLib2() + generated_by_testExe1() + testLib3() + testLib4()
!           + testLib5() + testLib6()
            + generated_by_testExe3() + testLib4lib() + testLib4libcfg());
  }
--- 21,25 ----
  {
    return (testLib2() + generated_by_testExe1() + testLib3() + testLib4()
!           + testLib5() + testLib6() + testLibCycleA1()
            + generated_by_testExe3() + testLib4lib() + testLib4libcfg());
  }

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ExportImport/Import/A/CMakeLists.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** CMakeLists.txt	11 Jul 2009 14:10:51 -0000	1.3
--- CMakeLists.txt	1 Sep 2009 14:38:35 -0000	1.4
***************
*** 30,33 ****
--- 30,34 ----
    exp_testLib5
    exp_testLib6
+   exp_testLibCycleA
    )
  
***************
*** 61,64 ****
--- 62,66 ----
    bld_testLib5
    bld_testLib6
+   bld_testLibCycleA
    )
  



More information about the Cmake-commits mailing list