diff options
author | Brad King <brad.king@kitware.com> | 2008-01-28 18:37:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-28 18:37:59 (GMT) |
commit | 437043bb04da113bf822aa42d5cf3a3cc3366be1 (patch) | |
tree | 00fada48e399d1c2b27fdc3d296cec73923130d8 /Tests/ExportImport | |
parent | 6388ebceb12e8eca3ce0e30528f0edaa990c8f7a (diff) | |
download | CMake-437043bb04da113bf822aa42d5cf3a3cc3366be1.zip CMake-437043bb04da113bf822aa42d5cf3a3cc3366be1.tar.gz CMake-437043bb04da113bf822aa42d5cf3a3cc3366be1.tar.bz2 |
BUG: Fix export/import file generation to not store link dependencies of executables or modules.
Diffstat (limited to 'Tests/ExportImport')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/ExportImport/Export/testExe1.c | 4 | ||||
-rw-r--r-- | Tests/ExportImport/Export/testExe1lib.c | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index 62fe811..ac2f10f 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -5,7 +5,9 @@ if(CMAKE_ANSI_CFLAGS) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") endif(CMAKE_ANSI_CFLAGS) +add_library(testExe1lib STATIC testExe1lib.c) # not exported add_executable(testExe1 testExe1.c) +target_link_libraries(testExe1 testExe1lib) add_executable(testExe2 testExe2.c) set_property(TARGET testExe2 PROPERTY ENABLE_EXPORTS 1) diff --git a/Tests/ExportImport/Export/testExe1.c b/Tests/ExportImport/Export/testExe1.c index 39177d0..8ac154f 100644 --- a/Tests/ExportImport/Export/testExe1.c +++ b/Tests/ExportImport/Export/testExe1.c @@ -1,5 +1,7 @@ #include <stdio.h> +extern int testExe1lib(); + int main(int argc, const char* argv[]) { if(argc < 2) @@ -20,5 +22,5 @@ int main(int argc, const char* argv[]) return 1; } } - return 0; + return testExe1lib(); } diff --git a/Tests/ExportImport/Export/testExe1lib.c b/Tests/ExportImport/Export/testExe1lib.c new file mode 100644 index 0000000..60cd746 --- /dev/null +++ b/Tests/ExportImport/Export/testExe1lib.c @@ -0,0 +1 @@ +int testExe1lib() { return 0; } |