LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2009, 09:02 AM   #1
rpkhere
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
How to DELETE/REMOVE default tag -D when compiling using CMake?


I am trying to build a project by using CMake on Linux. When I create a library for the compiled project , Cmake by default is adding -Dtarget_EXPORTS option during compilation. This is option is unknown to my compiler.

i.e. g++ -Dtarget_EXPORTS -Wno-error testpgm.cc

Any idea how to remove or suppress this -D tag which is added by default in CMake ??
Thanks in advance
 
Old 06-30-2009, 03:29 PM   #2
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
There is no such thing as an unknown -D option, so your error must be coming from somewhere else. A -D option simply defines a new macro - and you can define any macro you want, so it doesn't matter if it's a macro that your code never uses, and it will never cause errors.

Please make your question clearer. What do you mean by "create a library for the compiled project"?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need assistance with shell script - replace a string with a start tag and end tag SupermanInNY Programming 18 01-02-2010 06:44 PM
Can't delete or remove files..... budword Linux - Desktop 5 02-16-2008 11:26 AM
Compiling stellarium: cmake returns "CURL was not found" charlesreid1 Linux - Software 2 10-23-2007 01:02 AM
cvs tag remove lordofring Programming 2 10-27-2005 04:30 PM
How to delete (remove) Fedora Darthomir Fedora 8 03-19-2004 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration