From 66772d48198ba2fe1fb6f1bfe5a6ab8c40134b24 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 6 Feb 2013 20:49:51 +0100 Subject: [PATCH] Move template to designated cmake/ directory --- cmake/Modules/LibtoolArchives.cmake | 7 ++++++- la.in => cmake/Templates/la.in | 0 2 files changed, 6 insertions(+), 1 deletion(-) rename la.in => cmake/Templates/la.in (100%) diff --git a/cmake/Modules/LibtoolArchives.cmake b/cmake/Modules/LibtoolArchives.cmake index 399a70bd..846728bb 100644 --- a/cmake/Modules/LibtoolArchives.cmake +++ b/cmake/Modules/LibtoolArchives.cmake @@ -122,13 +122,18 @@ function (configure_la name target) ${ltversion_STRING} ) endif (ltversion_STRING) + + # assume that we are in cmake/Modules, and that the template have been + # put in cmake/Templates. we cannot use CMAKE_CURRENT_LIST_DIR because + # this is in a function, and we cannot know who's calling us + set (templ_dir "${PROJECT_SOURCE_DIR}/cmake/Templates") # only write an .la if libtool is found; otherwise we have no use # for it. if (ltversion) message (STATUS "Writing libtool archive for ${target}") configure_file ( - ${PROJECT_SOURCE_DIR}/la.in + ${templ_dir}/la.in ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/lib${target}.la @ONLY@ ) diff --git a/la.in b/cmake/Templates/la.in similarity index 100% rename from la.in rename to cmake/Templates/la.in