mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: #1448 Compilation with Clang
This commit is contained in:
parent
d0314c9e0e
commit
eeecc06601
1 changed files with 5 additions and 1 deletions
|
@ -477,7 +477,11 @@ MACRO(NL_SETUP_BUILD)
|
||||||
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -m64")
|
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -m64")
|
||||||
ENDIF(HOST_CPU STREQUAL "x86" AND TARGET_CPU STREQUAL "x86_64")
|
ENDIF(HOST_CPU STREQUAL "x86" AND TARGET_CPU STREQUAL "x86_64")
|
||||||
|
|
||||||
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -D_REENTRANT -pipe -ftemplate-depth-48 -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-unused -fno-strict-aliasing")
|
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -D_REENTRANT -pipe -ftemplate-depth-48 -Wall -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-unused -fno-strict-aliasing")
|
||||||
|
|
||||||
|
IF(NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
||||||
|
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -ansi")
|
||||||
|
ENDIF(NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
||||||
|
|
||||||
IF(WITH_COVERAGE)
|
IF(WITH_COVERAGE)
|
||||||
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
||||||
|
|
Loading…
Reference in a new issue