1 # test forcing a source file language to c++ from c
2 cmake_minimum_required (VERSION 2.6)
4 # force this to be verbose so I can debug a dashboard entry
5 SET(CMAKE_VERBOSE_MAKEFILE 1)
7 add_executable(SetLang bar.c)
8 set_source_files_properties(foo.c bar.c PROPERTIES LANGUAGE CXX)
9 target_link_libraries(SetLang foo)
10 set_target_properties(SetLang PROPERTIES LINKER_LANGUAGE CXX)