mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
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:
@@ -1,7 +1,5 @@
|
||||
include(GenerateExportHeader)
|
||||
|
||||
add_compiler_export_flags()
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_library(libshared SHARED libshared.cpp)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user