mirror of https://github.com/FOME-Tech/openblt.git
Refs #316. Added -std=gnu99 compiler flag for compatibility with older versions of gcc.
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@325 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
e2aa10f4b8
commit
7343e2a9a6
|
@ -76,7 +76,7 @@ set(LIBOPENBLT_LIB ${PROJECT_OUTPUT_DIRECTORY})
|
|||
if(WIN32)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_WIN32 -D_CRT_SECURE_NO_WARNINGS")
|
||||
elseif(UNIX)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_LINUX -pthread")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_LINUX -pthread -std=gnu99")
|
||||
endif(WIN32)
|
||||
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ if(WIN32)
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_WIN32 -D_CRT_SECURE_NO_WARNINGS")
|
||||
elseif(UNIX)
|
||||
set(PROJECT_PORT_DIR ${PROJECT_SOURCE_DIR}/port/linux)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_LINUX -pthread")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_LINUX -pthread -std=gnu99")
|
||||
endif(WIN32)
|
||||
|
||||
# Set the output directory
|
||||
|
|
Loading…
Reference in New Issue