Skip to content

Commit e9e32f8

Browse files
authored
Merge pull request #161 from stilllman/cmake-alias-target
[cmake] Define alias ghcFilesystem::ghc_filesystem unconditionally
2 parents d1f0d79 + 9f61ee0 commit e9e32f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ message(STATUS "Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
4040
message(STATUS "CMAKE_CXX_COMPILE_FEATURES: ${CMAKE_CXX_COMPILE_FEATURES}")
4141

4242
add_library(ghc_filesystem INTERFACE)
43+
add_library(ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
4344
target_include_directories(ghc_filesystem INTERFACE
4445
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
4546
$<INSTALL_INTERFACE:include>)
@@ -84,5 +85,4 @@ if(GHC_FILESYSTEM_WITH_INSTALL)
8485
"${PROJECT_BINARY_DIR}/cmake/ghc_filesystem-config-version.cmake"
8586
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ghc_filesystem"
8687
)
87-
add_library(ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
8888
endif()

0 commit comments

Comments
 (0)