Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-28-2009, 08:02 AM   #1
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

Any idea how to remove or suppress this -D tag which is added by default in CMake ??
Thanks in advance
Old 06-30-2009, 02:29 PM   #2
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"?


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 05:44 PM
Can't delete or remove files..... budword Linux - Desktop 5 02-16-2008 10:26 AM
Compiling stellarium: cmake returns "CURL was not found" charlesreid1 Linux - Software 2 10-23-2007 12:02 AM
cvs tag remove lordofring Programming 2 10-27-2005 03:30 PM
How to delete (remove) Fedora Darthomir Fedora 8 03-19-2004 09:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 AM.

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