Skip to content

Commit 88e0dae

Browse files
committed
Use precompiled headers for ghc::filesystem library
1 parent 4edcee9 commit 88e0dae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/Dependencies.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,9 @@ if( NOT USE_STANDARD_FILESYSTEM OR NOT STANDARD_FILESYSTEM_COMPILES OR BIT7Z_BUI
5656
message( STATUS "ghc::filesystem source code available at ${ghc_filesystem_SOURCE_DIR}" )
5757
add_library( ghc_filesystem INTERFACE IMPORTED )
5858
target_include_directories( ghc_filesystem SYSTEM INTERFACE ${ghc_filesystem_SOURCE_DIR}/include )
59+
if( CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0" )
60+
target_precompile_headers( ghc_filesystem INTERFACE
61+
"${ghc_filesystem_SOURCE_DIR}/include/ghc/filesystem.hpp" )
62+
endif()
5963
endif()
6064
endif()

0 commit comments

Comments
 (0)