[CMake] 2.4.7 SetLang test failure on Tru64 UNIX 5.1
Bill Hoffman
bill.hoffman at kitware.com
Thu Sep 20 16:56:11 EDT 2007
Albert Chin wrote:
> The SetLang test fails on Tru64 UNIX because the C++ compiler invokes
> the C compiler to build Tests/SetLang/bar.c. The C++ compiler can be
> used if we force it with "-x cxx". How do I do this to get this test
> to pass?
>
>
You can change the CMAKE_CXX_COMPILE_OBJECT rule variable in the
platform file
for that machine. You can see Platforms/QNX.cmake for an example, of
just that flag:
# force the language to be c++ since qnx only has gcc and not g++ and c++?
SET(CMAKE_CXX_COMPILE_OBJECT
"<CMAKE_CXX_COMPILER> -x c++ <FLAGS> -o <OBJECT> -c <SOURCE>")
Since you are going to the trouble of getting cmake working, can you set
up a nightly dashboard
so it stays working? At one point we had one and it used to work. As
you can see we lost
it and now it does not work.... It would involve a cron job that ran
once a day and ran the
cmake test suite. I can help you set it up.
-Bill
More information about the CMake
mailing list