From d1d8d2df5bc7e23db7dff55427edb3daf5f5e1d2 Mon Sep 17 00:00:00 2001 From: Ahmed Yarub Hani Al Nuaimi Date: Mon, 6 Sep 2021 18:37:01 -0300 Subject: [PATCH] Use default installation method if no configuration script is provided --- .../src/main/resources/C-libcurl/CMakeLists.txt.mustache | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache index b888c3743819..a7446c1845f0 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache @@ -92,8 +92,10 @@ target_link_libraries(${pkgName} ${CURL_LIBRARIES} ) include(PostTarget.cmake OPTIONAL) -if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in) - # installation of libraries, headers, and config files +# installation of libraries, headers, and config files +if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in) + install(TARGETS ${pkgName} DESTINATION ${CMAKE_INSTALL_PREFIX}) +else() include(GNUInstallDirs) install(TARGETS ${pkgName} EXPORT ${pkgName}Targets