Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Mar 30, 2019
1 parent d367bcd commit 77ecddd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ set(TAOCPP_OPERATORS_INSTALL_DOC_DIR "share/doc/tao/operators" CACHE STRING "The
set(TAOCPP_OPERATORS_INSTALL_CMAKE_DIR "share/taocpp-operators/cmake" CACHE STRING "The installation cmake directory")

# define a header-only library
add_library(taocpp-operators INTERFACE)
add_library(taocpp::operators ALIAS taocpp-operators)
target_include_directories(taocpp-operators INTERFACE
add_library(operators INTERFACE)
add_library(taocpp::operators ALIAS operators)
target_include_directories(operators INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${TAOCPP_OPERATORS_INSTALL_INCLUDE_DIR}>
)

# features used by taocpp/operators
target_compile_features(taocpp-operators INTERFACE
target_compile_features(operators INTERFACE
cxx_constexpr
cxx_noexcept
cxx_rvalue_references
Expand All @@ -54,9 +54,9 @@ endif()
configure_file(cmake/dummy-config.cmake.in taocpp-operators-config.cmake @ONLY)

# install and export target
install(TARGETS taocpp-operators EXPORT taocpp-operators-targets)
install(TARGETS operators EXPORT operators-targets)

install(EXPORT taocpp-operators-targets
install(EXPORT operators-targets
FILE taocpp-operators-config.cmake
NAMESPACE taocpp::
DESTINATION ${TAOCPP_OPERATORS_INSTALL_CMAKE_DIR}
Expand Down

0 comments on commit 77ecddd

Please sign in to comment.