From a4ce4bc2d3da0a88e3f46f7f86e8a631f680da8d Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Wed, 10 Jan 2018 17:03:14 -0500 Subject: [PATCH] Use correct target Also, fix the formatting in the generator expressions. For some reason, the previous formatting caused this error: Target "date_interface" INTERFACE_INCLUDE_DIRECTORIES property contains path: ... which is prefixed in the source directory. --- CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9313fd..fc0a33f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,16 +85,12 @@ add_library(date_interface INTERFACE) # an interface (not a library), to enable # add include folders to the INTERFACE and targets that consume it target_include_directories(date_interface INTERFACE - $ - $ + "$" + $ ) -install( TARGETS date_prj EXPORT DateConfig ) +install( TARGETS date_interface EXPORT DateConfig ) install( EXPORT DateConfig DESTINATION lib/cmake/date ) install( TARGETS tz DESTINATION lib ) install( DIRECTORY ${HEADER_FOLDER}/ DESTINATION include/ )