[CMake] CHECK_C_COMPILER_FLAG doesn't work with -march=xlr option with a MIPS gcc cross compiler

2012-11-22 Thread Mahendra Ladhe
Hi,   I've a CMakeLists.txt file as below. CHECK_C_COMPILER_FLAG (-march=xlr FLAG_xlr) CHECK_C_COMPILER_FLAG (-march=xlp FLAG_xlp) cmake version is 2.8.4 on Linux RedHat 5.6 I'm using a gcc MIPS cross compiler. Using this cross compiler I'm able to compile a simple C program using both -march=x

[CMake] cmake 2.6 : Issue in renaming the cmake executable on Linux

2010-01-08 Thread Mahendra Ladhe
Hi,    I've a Ubuntu 8.04.1 Linux machine and cmake version 2.4-patch 7 in /usr/bin/ Due to project requirement, I installed cmake version 2.6-patch 4 under /usr/local/ I want to make sure that when I or other users execute cmake, by default it's always the 2.4 version in /usr/bin/cmake irrespec

Re: [CMake] Simple CMakeLists.txt file not working with cmake version 2.6

2009-12-24 Thread Mahendra Ladhe
CMakeLists.txt file not working with cmake version 2.6 To: "Mahendra Ladhe" Cc: cmake@cmake.org Date: Thursday, 24 December, 2009, 4:50 AM This small test project works fine for me: cmake_minimum_required(VERSION 2.6 FATAL_ERROR) project(test NONE) add_custom_command(   OUTPUT "${CMAKE_CUR

Re: [CMake] Simple CMakeLists.txt file not working with cmake version 2.6

2009-12-24 Thread Mahendra Ladhe
ning 'cmake' and not when running 'make' I googled, but didn't find a solution that will work on both cmake versions. Thanks, Mahendra --- On Thu, 24/12/09, Michael Wild wrote: From: Michael Wild Subject: Re: [CMake] Simple CMakeLists.txt file not working with cmake vers

[CMake] Simple CMakeLists.txt file not working with cmake version 2.6

2009-12-24 Thread Mahendra Ladhe
ake this CMakeLists.txt work on both cmake versions ? Thank you, Regards, Mahendra Ladhe The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/___ Powered by www.kitware.com Visit other Kitware open-s

[CMake] CHECK_C_COMPILER_FLAG macro not working for gcc's -fprofile-arcs flag

2008-08-14 Thread Mahendra Ladhe
Hi,   shown below is part of my CMakeLists.txt file #To build the code for use with gcov, call cmake as below #cmake -DGCOV=1 .. IF (${GCOV})     CHECK_C_COMPILER_FLAG (-fprofile-arcs FLAG_Gcov1)     IF (FLAG_Gcov1)   add_definitions (-fprofile-arcs)     ELSE (FLAG_Gcov1)   MESSAGE(FATAL_E