diff --git a/CMakeLists.txt b/CMakeLists.txt index 9db3515..c180cb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 $ $) @@ -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()