From 0d8ec4b0937a36763ddc96bfe7f8b7ff7de30ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=96=CC=B6=CC=B6=CC=B6=DB=A3=DB=A3=DB=9C=DB=9C=CD=9C?= =?UTF-8?q?=CE=B6=CD=9C=CD=A1=20Sage?= Date: Tue, 10 Sep 2019 17:27:25 +0300 Subject: [PATCH 1/4] Update CMakeLists.txt Optional Install. This was was adding header files to my msi package --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d65a51f..d4d1fb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,11 +44,11 @@ set_target_properties(${IPFS_API_LIBNAME} PROPERTIES VERSION ${PROJECT_VERSION} ) target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES}) - -install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) -install(FILES include/ipfs/client.h DESTINATION include/ipfs) -install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) - +IF(ENABLE_INSTALL) + install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) + install(FILES include/ipfs/client.h DESTINATION include/ipfs) + install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) +ENDIF() # Tests, use "CTEST_OUTPUT_ON_FAILURE=1 make test" to see output from failed tests # https://cmake.org/cmake/help/v3.0/module/CTest.html From e8486551b167f261b53ee92b1e8ca89a523c92e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=96=CC=B6=CC=B6=CC=B6=DB=A3=DB=A3=DB=9C=DB=9C=CD=9C?= =?UTF-8?q?=CE=B6=CD=9C=CD=A1=20Sage?= Date: Fri, 27 Sep 2019 11:18:45 +0300 Subject: [PATCH 2/4] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4d1fb0..7ca49b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,11 +44,11 @@ set_target_properties(${IPFS_API_LIBNAME} PROPERTIES VERSION ${PROJECT_VERSION} ) target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES}) -IF(ENABLE_INSTALL) +if(ENABLE_INSTALL) install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) install(FILES include/ipfs/client.h DESTINATION include/ipfs) install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) -ENDIF() +endif() # Tests, use "CTEST_OUTPUT_ON_FAILURE=1 make test" to see output from failed tests # https://cmake.org/cmake/help/v3.0/module/CTest.html From ddb0461afddab34a2a3938da5f43064a248c9320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=96=CC=B6=CC=B6=CC=B6=DB=A3=DB=A3=DB=9C=DB=9C=CD=9C?= =?UTF-8?q?=CE=B6=CD=9C=CD=A1=20Sage?= Date: Sat, 28 Sep 2019 12:50:36 +0300 Subject: [PATCH 3/4] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ca49b6..7638080 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ set_target_properties(${IPFS_API_LIBNAME} PROPERTIES VERSION ${PROJECT_VERSION} ) target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES}) -if(ENABLE_INSTALL) +if(NOT DISABLE_INSTALL) install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) install(FILES include/ipfs/client.h DESTINATION include/ipfs) install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) From 20f1e2c94ffd4543b368119bc63488f23555a31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=96=CC=B6=CC=B6=CC=B6=DB=A3=DB=A3=DB=9C=DB=9C=CD=9C?= =?UTF-8?q?=CE=B6=CD=9C=CD=A1=20Sage?= Date: Sat, 28 Sep 2019 12:52:55 +0300 Subject: [PATCH 4/4] Update CMakeLists.txt --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7638080..119921e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,9 +45,9 @@ set_target_properties(${IPFS_API_LIBNAME} PROPERTIES ) target_link_libraries(${IPFS_API_LIBNAME} ${CURL_LIBRARIES}) if(NOT DISABLE_INSTALL) - install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) - install(FILES include/ipfs/client.h DESTINATION include/ipfs) - install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) + install(TARGETS ${IPFS_API_LIBNAME} DESTINATION lib) + install(FILES include/ipfs/client.h DESTINATION include/ipfs) + install(FILES include/ipfs/http/transport.h DESTINATION include/ipfs/http) endif() # Tests, use "CTEST_OUTPUT_ON_FAILURE=1 make test" to see output from failed tests