[CMake] how to add sources conditionally?

Miguel A. Figueroa-Villanueva miguelf at msu.edu
Fri Nov 18 14:20:19 EST 2005


> IF(COND1)
> SET(SRCS "${SRCS} ${SRC1}")
> ENDIF(COND1)

I think you need to remove the double-quotes

SET(SRCS ${SRCS} ${SRC1})



More information about the CMake mailing list