From eae0a85d84fe12f058f8542aa4d05cfdf5c61cb1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 12 Jan 2018 11:01:37 -0500 Subject: [PATCH] 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. --- Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt | 2 -- Tests/RunCMake/GenerateExportHeader/libstatic/CMakeLists.txt | 2 -- 2 files changed, 4 deletions(-) diff --git a/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt b/Tests/RunCMake/GenerateExportHeader/libshared/CMakeLists.txt index c4a761c74d..9516a5aa2f 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 0fd136cee6..56e8335242 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)