[CMake] the list parameter passed to function
Marmot Ken
realwangbo at gmail.com
Mon May 21 21:07:01 EDT 2012
here is the function :
FUNCTION( Append_headers_to_src_list src_list_out src_list_in
header_file_path_in )
MESSAGE( src_list_in " : ${src_list_in}" )
FILE( GLOB_RECURSE TEMP_LIST ${header_file_path_in}/*.h )
SET( ${src_list_out} ${src_list_in} ${TEMP_LIST} PARENT_SCOPE )
ENDFUNCTION( Append_headers_to_src_list
here is the place where the function is invoked:
AUX_SOURCE_DIRECTORY( . SRC_LIST )
MESSAGE( SRC_LIST " : ${SRC_LIST} " )
Append_headers_to_src_list( SRC_LIST ${SRC_LIST}
${CMAKE_SOURCE_DIR}/include/test )
here is output :
SRC_LIST : ./a.cpp;./c.cpp;./main.cpp
src_list_in : ./a.cpp
Output expected :
SRC_LIST : ./a.cpp;./c.cpp;./main.cpp
src_list_in : ./a.cpp
Question:
<1> how to get expected Output ?
<2> why ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120522/10eec5c0/attachment.htm>
More information about the CMake
mailing list