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.
This commit is contained in:
Brad King 2018-01-12 11:01:37 -05:00
parent 46ad721597
commit eae0a85d84
2 changed files with 0 additions and 4 deletions

View File

@ -1,7 +1,5 @@
include(GenerateExportHeader)
add_compiler_export_flags()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_library(libshared SHARED libshared.cpp)

View File

@ -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)