Mailinglist Archive: opensuse-packaging (192 mails)
| < Previous | Next > |
[opensuse-packaging] cmake arguments and quotes conversion
- From: Adam Mizerski <adam@xxxxxxxxxxx>
- Date: Fri, 22 Apr 2011 12:54:44 +0200
- Message-id: <1303469684.2801.11.camel@etam-laptop.rodzinka>
Hi,
I have problem with passing arguments to cmake.
In spec in %build section I have:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -DNDEBUG"
As I tried locally on my machine (just normal, not osc build) it works
as expected.
But when running in osc build it is converted to:
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release \
'-DCMAKE_C_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG' \
'-DCMAKE_CXX_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG'
(that's how it looks like in compilation log)
and it's not working. The build type is changed to Release, but flags
are unchanged.
Is it bug in cmake or osc build? What to do with that?
Thanks for any help.
--
Adam "etamPL" Mizerski
I have problem with passing arguments to cmake.
In spec in %build section I have:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -DNDEBUG"
As I tried locally on my machine (just normal, not osc build) it works
as expected.
But when running in osc build it is converted to:
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release \
'-DCMAKE_C_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG' \
'-DCMAKE_CXX_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG'
(that's how it looks like in compilation log)
and it's not working. The build type is changed to Release, but flags
are unchanged.
Is it bug in cmake or osc build? What to do with that?
Thanks for any help.
--
Adam "etamPL" Mizerski
| < Previous | Next > |