diff options
author | Brad King <brad.king@kitware.com> | 2018-01-12 16:01:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-12 16:01:37 (GMT) |
commit | eae0a85d84fe12f058f8542aa4d05cfdf5c61cb1 (patch) | |
tree | bc1a0505749e4b2acca86cecf6addfd06895cdae /Tests/RunCMake/GenerateExportHeader | |
parent | 46ad7215979cd60c00589f6f0abdcff2856069e8 (diff) | |
download | CMake-eae0a85d84fe12f058f8542aa4d05cfdf5c61cb1.zip CMake-eae0a85d84fe12f058f8542aa4d05cfdf5c61cb1.tar.gz CMake-eae0a85d84fe12f058f8542aa4d05cfdf5c61cb1.tar.bz2 |
Tests: Remove redundant code from RunCMake.GenerateExportHeader case
Drop extra `add_compiler_export_flags` calls from subdirectories because
it is already called in the top-level directory before entering them.
Diffstat (limited to 'Tests/RunCMake/GenerateExportHeader')
-rw-r--r-- | Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt b/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt index c4a761c..9516a5a 100644 --- a/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt +++ b/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt @@ -1,7 +1,5 @@ include(GenerateExportHeader) -add_compiler_export_flags() - set(CMAKE_INCLUDE_CURRENT_DIR ON) add_library(libshared SHARED libshared.cpp) diff --git a/Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt b/Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt index 0fd136c..56e8335 100644 --- a/Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt +++ b/Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt @@ -2,8 +2,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) include(GenerateExportHeader) -add_compiler_export_flags() - # Show that the export header has no effect on a static library. add_library(libstatic STATIC libstatic.cpp) |