Files from DRV_SRC and DRV_HDR should be compiled with same flags as other files.

This commit is contained in:
Kai Nacke
2013-10-23 01:26:28 +02:00
parent 847b7ac611
commit e6ffffdace

View File

@@ -268,7 +268,7 @@ set(LDC_SOURCE_FILES
)
# DMD source files have a .c extension, but are actually C++ code.
foreach(file ${LDC_SOURCE_FILES})
foreach(file ${LDC_SOURCE_FILES} ${DRV_SRC} ${DRV_HDR})
if(file MATCHES ".*\\.c$")
set_source_files_properties(${file} PROPERTIES
LANGUAGE CXX