From d663c2fe913b985bdec1b170c43a09af39dd5156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 13 Mar 2016 01:47:10 +0100 Subject: [PATCH] cmake: Force to use C compiler for asm_scale.S This fix FTBFS with cmake < 2.8.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/fastscale/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fastscale/CMakeLists.txt b/src/fastscale/CMakeLists.txt index 267d764..66812fd 100644 --- a/src/fastscale/CMakeLists.txt +++ b/src/fastscale/CMakeLists.txt @@ -21,7 +21,9 @@ link_directories( ${TQT_LIBRARY_DIRS} ) -enable_language(CXX ASM) +# Force to use C compiler for asm_scale.S instead of ASM +# because contains mixed code - ASM with C definitions +set_source_files_properties( asm_scale.S PROPERTIES LANGUAGE C ) # TODO add assembler flags here (2016-01-14, Fat-Zer)