From: Thomas Jarosch Date: Fri, 8 Jul 2011 11:45:56 +0000 (+0200) Subject: cmake: Fix install location of header files. Based upon patch by Uwe Bonnes X-Git-Tag: v0.20~6 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=e5fe881640844db2eea48f36cee7a905f5937b8a cmake: Fix install location of header files. Based upon patch by Uwe Bonnes --- diff --git a/ftdipp/CMakeLists.txt b/ftdipp/CMakeLists.txt index 8423b2e..2f6a7b0 100644 --- a/ftdipp/CMakeLists.txt +++ b/ftdipp/CMakeLists.txt @@ -52,7 +52,7 @@ if (FTDIPP) ) install( FILES ${cpp_headers} - DESTINATION include/${PROJECT_NAME} + DESTINATION include COMPONENT headers ) @@ -71,7 +71,7 @@ if (FTDIPP) ) install( FILES ${cpp_headers} - DESTINATION include/${PROJECT_NAME} + DESTINATION include COMPONENT headers ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0e12e54..4590c58 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,7 +37,7 @@ if(${UNIX}) ) install( FILES ${c_headers} - DESTINATION include/${PROJECT_NAME} + DESTINATION include COMPONENT headers ) @@ -56,7 +56,7 @@ if(${WIN32}) ) install( FILES ${c_headers} - DESTINATION include/${PROJECT_NAME} + DESTINATION include COMPONENT headers )