Csound Csound-dev Csound-tekno Search About

[Cs-dev] correct cmake option for floats build

Date2014-08-21 22:12
FromVictor Lazzarini
Subject[Cs-dev] correct cmake option for floats build
I wanted to build for floats (32bit), but I don’t know what is the latest way to setup cmake
so that it is done correctly. Is it just a matter of defining use double as 0 like this?

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DOUBLE=0”)

Does anyone know?

Thanks
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie





------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-08-21 22:40
FromSteven Yi
SubjectRe: [Cs-dev] correct cmake option for floats build
You should pass in USE_DOUBLE to CMake, rather than as a flag I think.
The iOS build.sh script has:

cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0
-DBUILD_STATIC_LIBRARY=1 -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1
-DCMAKE_BUILD_TYPE=Release -DUSE_CURL=0  -DIOS=1


so just calling cmake -DUSE_DOUBLE=0  should do the trick.

On Thu, Aug 21, 2014 at 5:12 PM, Victor Lazzarini
 wrote:
> I wanted to build for floats (32bit), but I don’t know what is the latest way to setup cmake
> so that it is done correctly. Is it just a matter of defining use double as 0 like this?
>
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DOUBLE=0”)
>
> Does anyone know?
>
> Thanks
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csou

Date2014-08-21 22:56
FromVictor Lazzarini
SubjectRe: [Cs-dev] correct cmake option for floats build
Thanks!
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 21 Aug 2014, at 22:40, Steven Yi  wrote:

> You should pass in USE_DOUBLE to CMake, rather than as a flag I think.
> The iOS build.sh script has:
> 
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0
> -DBUILD_STATIC_LIBRARY=1 -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1
> -DCMAKE_BUILD_TYPE=Release -DUSE_CURL=0  -DIOS=1
> 
> 
> so just calling cmake -DUSE_DOUBLE=0  should do the trick.
> 
> On Thu, Aug 21, 2014 at 5:12 PM, Victor Lazzarini
>  wrote:
>> I wanted to build for floats (32bit), but I don’t know what is the latest way to setup cmake
>> so that it is done correctly. Is it just a matter of defining use double as 0 like this?
>> 
>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DOUBLE=0”)
>> 
>> Does anyone know?
>> 
>> Thanks
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-08-22 08:14
FromRory Walsh
SubjectRe: [Cs-dev] correct cmake option for floats build
AttachmentsNone  None  

I thought this was now done in float-version.h?

On 22 Aug 2014 00:53, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I wanted to build for floats (32bit), but I don’t know what is the latest way to setup cmake
so that it is done correctly. Is it just a matter of defining use double as 0 like this?

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DOUBLE=0”)

Does anyone know?

Thanks
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie





------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-08-22 08:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] correct cmake option for floats build
float-version.h is created by cmake now (which is the right thing to do).
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 22 Aug 2014, at 08:14, Rory Walsh  wrote:

> I thought this was now done in float-version.h?
> On 22 Aug 2014 00:53, "Victor Lazzarini"  wrote:
> I wanted to build for floats (32bit), but I don’t know what is the latest way to setup cmake
> so that it is done correctly. Is it just a matter of defining use double as 0 like this?
> 
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DOUBLE=0”)
> 
> Does anyone know?
> 
> Thanks
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net