[asterisk-scf-commits] asterisk-scf/integration/cmake.git branch "disintegrated-build" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jun 17 11:45:52 CDT 2011


branch "disintegrated-build" has been updated
       via  0dde9ec8053a53626d56a38b0fc282b7e1589092 (commit)
      from  97a9bbc7874612f35b47e2067bec937c201f395b (commit)

Summary of changes:
 AsteriskSCF.cmake |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 0dde9ec8053a53626d56a38b0fc282b7e1589092
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Jun 17 11:45:06 2011 -0500

    Automatically add 'include' subdirectory to search path.
    
    If a project has a subdirectory named 'include', astscf_project() will now
    automatically add it to the include file search path for that project's
    directory and subdirectories.

diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index b2cdefa..70fa132 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -273,6 +273,12 @@ endmacro()
 
 # Function which initializes project specific things
 function(astscf_project NAME ICE_VERSION)
+  message(STATUS "Setting up project ${NAME} for Ice version ${ICE_VERSION}")
+
+  if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include")
+    include_directories(include)
+  endif()
+
   if(ASTSCF_MASTER_PROJECT)
     # this is a sub-project, so just record the name and
     # move on
@@ -290,8 +296,6 @@ function(astscf_project NAME ICE_VERSION)
     set(ASTSCF_MASTER_PROJECT true PARENT_SCOPE)
   endif()
 
-  message(STATUS "Setting up project ${NAME} for Ice version ${ICE_VERSION}")
-
   set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib" PARENT_SCOPE)
   set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib" PARENT_SCOPE)
   set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin" PARENT_SCOPE)

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/cmake.git



More information about the asterisk-scf-commits mailing list