TestCocoon support for KDE build system
Stephen Kelly
steveire at gmail.com
Sat Aug 27 18:02:17 UTC 2011
Stephen Kelly wrote:
>> It seams that csg++ is computed as a regular expression.
>> There is a workaround which simply consists to use csgxx instead:
>> 1) copy csg++ into csgxx
>> 2) copy g++.cspro into gxx.cspro
>> 3) edit gxx.cspro and set the TOOL variable to g++
>> 4) In TestCocoonToolchain.cmake use csgxx instead of csg++
>>
>> Let me know if this works.
>> S´ebastien
>
> I'm afraid it did not. I tried with cmake 2.8.3 as well. I still get
> endless:
>
> In file included from
> /home/kde-devel/dev/src/grantlee/templates/lib/abstractlocalizer.cpp:26:
> /home/kde-devel/dev/qt47/include/QtCore/QDateTime:1: error: style of
> line directive is a GCC extension
>
> Thanks,
>
> Steve.
Actually the problem was -pedantic-errors. Here's a testcase:
cmake_minimum_required(VERSION 2.8)
project(tctest)
set(CMAKE_CXX_FLAGS_TESTCOCOON "${CMAKE_CXX_FLAGS_RELEASE} --cs-on --cs-
count --cs-qt4")
set(CMAKE_C_FLAGS_TESTCOCOON "${CMAKE_C_FLAGS_RELEASE} --cs-on --cs-count --
cs-qt4")
set(CMAKE_EXE_LINKER_FLAGS_TESTCOCOON "${CMAKE_EXE_LINKER_FLAGS_RELEASE} --
cs-on --cs-count --cs-qt4")
set(CMAKE_SHARED_LINKER_FLAGS_TESTCOCOON
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} --cs-on --cs-count --cs-qt4")
set(CMAKE_STATIC_LINKER_FLAGS_TESTCOCOON
"${CMAKE_STATIC_LINKER_FLAGS_RELEASE} --cs-on --cs-count --cs-qt4")
file(WRITE test.cpp "int main(int,char**) { return 0; }\n")
add_executable(tctest test.cpp)
if (CMAKE_COMPILER_IS_GNUCXX)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic-errors")
endif()
I was able to build grantlee when I removed that flag. Now to figure out
what testcocoon does...
Thanks,
Steve.
More information about the Kde-buildsystem
mailing list