Skip to content

Commit

Permalink
Merge pull request #161 from stilllman/cmake-alias-target
Browse files Browse the repository at this point in the history
[cmake] Define alias ghcFilesystem::ghc_filesystem unconditionally
  • Loading branch information
gulrak committed Mar 5, 2023
2 parents d1f0d79 + 9f61ee0 commit e9e32f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ message(STATUS "Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "CMAKE_CXX_COMPILE_FEATURES: ${CMAKE_CXX_COMPILE_FEATURES}")

add_library(ghc_filesystem INTERFACE)
add_library(ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
target_include_directories(ghc_filesystem INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
Expand Down Expand Up @@ -84,5 +85,4 @@ if(GHC_FILESYSTEM_WITH_INSTALL)
"${PROJECT_BINARY_DIR}/cmake/ghc_filesystem-config-version.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ghc_filesystem"
)
add_library(ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
endif()

0 comments on commit e9e32f8

Please sign in to comment.