Skip to content

Commit

Permalink
Precompile yaml-cpp headers
Browse files Browse the repository at this point in the history
  • Loading branch information
k0zmo committed Aug 31, 2020
1 parent 2e99ba6 commit 12fb0be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -31,6 +31,7 @@ if(kl_master_project)
include(Sanitizers)
endif()
include(SourceGroup)
include(PrecompileHeaders)

find_package(Boost 1.61.0 REQUIRED COMPONENTS)

Expand Down
8 changes: 8 additions & 0 deletions external/CMakeLists.txt
Expand Up @@ -62,6 +62,14 @@ if(KL_ENABLE_YAML)
)
endif()
set_target_properties(yaml-cpp PROPERTIES FOLDER external)
kl_precompile_headers(yaml-cpp HEADERS
string
ostream
istream
ios
map
vector
)
endif()
endif()

Expand Down
1 change: 0 additions & 1 deletion tests/CMakeLists.txt
Expand Up @@ -77,7 +77,6 @@ elseif(KL_USE_OPENCPPCOVERAGE)
)
endif()

include(PrecompileHeaders)
kl_precompile_headers(kl-tests
HEADERS
string
Expand Down

0 comments on commit 12fb0be

Please sign in to comment.