summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenerateExportHeader
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-12 16:01:37 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-12 16:01:37 (GMT)
commiteae0a85d84fe12f058f8542aa4d05cfdf5c61cb1 (patch)
treebc1a0505749e4b2acca86cecf6addfd06895cdae /Tests/RunCMake/GenerateExportHeader
parent46ad7215979cd60c00589f6f0abdcff2856069e8 (diff)
downloadCMake-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.txt2
-rw-r--r--Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt2
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)