I've got the following in my CMakeLists.txt
SET( L1 *.h *.hpp *.cpp *.c )
MESSAGE( STATUS "L1 = ${L1}" )
macro( test L2 )
MESSAGE( STATUS "L2 = ${L2}" )
FOREACH( L ${L2} )
MESSAGE( STATUS " L = ${L}" )
SET( L_LIST "${L_LIST} stuff/${L}" )
ENDFOREACH( L )
MESSAGE( STATUS "L_LIST = ${L_LIST}" )
endmacro( test )
test( ${L1} )
I get the following output
-- L1 = *.h;*.hpp;*.cpp;*.c
-- L2 = *.h
-- L = *.h
-- L_LIST = stuff/*.h
I'm expecting
-- L1 = *.h;*.hpp;*.cpp;*.c
-- L2 = *.h;*.hpp;*.cpp;*.c
-- L = *.h
-- L = *.hpp
-- L = *.cpp
-- L = *.c
-- L_LIST = stuff/*.h stuff/*.hpp stuff/*.cpp stuff/*.c
Can anybody help with this?
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake