mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Add option for -mfpmath=both flag
This commit is contained in:
parent
ca8f75bea8
commit
d518f6b730
1 changed files with 8 additions and 0 deletions
|
@ -327,6 +327,10 @@ MACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
||||||
|
|
||||||
OPTION(WITH_SSE2 "With SSE2" ON )
|
OPTION(WITH_SSE2 "With SSE2" ON )
|
||||||
OPTION(WITH_SSE3 "With SSE3" ON )
|
OPTION(WITH_SSE3 "With SSE3" ON )
|
||||||
|
|
||||||
|
IF(NOT MSVC)
|
||||||
|
OPTION(WITH_GCC_FPMATH_BOTH "With GCC -mfpmath=both" OFF)
|
||||||
|
ENDIF(NOT MSVC)
|
||||||
ENDMACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
ENDMACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
|
||||||
|
|
||||||
MACRO(NL_SETUP_NELNS_DEFAULT_OPTIONS)
|
MACRO(NL_SETUP_NELNS_DEFAULT_OPTIONS)
|
||||||
|
@ -621,6 +625,10 @@ MACRO(NL_SETUP_BUILD)
|
||||||
ADD_PLATFORM_FLAGS("-msse3")
|
ADD_PLATFORM_FLAGS("-msse3")
|
||||||
ENDIF(WITH_SSE3)
|
ENDIF(WITH_SSE3)
|
||||||
|
|
||||||
|
IF(WITH_GCC_FPMATH_BOTH)
|
||||||
|
ADD_PLATFORM_FLAGS("-mfpmath=both")
|
||||||
|
ENDIF(WITH_GCC_FPMATH_BOTH)
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
IF(NOT XCODE)
|
IF(NOT XCODE)
|
||||||
IF(CMAKE_OSX_ARCHITECTURES)
|
IF(CMAKE_OSX_ARCHITECTURES)
|
||||||
|
|
Loading…
Reference in a new issue