Added support for builtin config in cmake

This commit is contained in:
Nikolas Garofil
2010-01-17 03:00:51 +01:00
parent 5664cc3d13
commit 287c38a0b9
6 changed files with 25 additions and 24 deletions

View File

@@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
if(BUILD_CONFIG_OUTPUT)
if(BUILD_BUILTIN_CONFIG)
# generate defconfig
add_custom_command(OUTPUT defconfig.h COMMAND
${CMAKE_SOURCE_DIR}/text2c.sh ${CMAKE_CURRENT_SOURCE_DIR}/conky.conf
@@ -28,5 +28,5 @@ if(BUILD_CONFIG_OUTPUT)
)
add_custom_target(defconfig ALL DEPENDS defconfig.h)
set_source_files_properties(defconfig.h PROPERTIES GENERATED TRUE)
endif(BUILD_CONFIG_OUTPUT)
endif(BUILD_BUILTIN_CONFIG)