This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch issue51
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git


The following commit(s) were added to refs/heads/issue51 by this push:
     new fd3c56e  add c99 support to cmake
fd3c56e is described below

commit fd3c56eacee287c3bcabad699638225651cebc6e
Author: Kealan McCusker <[email protected]>
AuthorDate: Thu Oct 24 13:29:15 2019 +0100

    add c99 support to cmake
---
 CMakeLists.txt | 2 +-
 README.md      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b7486b..d44a372 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,7 +64,7 @@ set(AMCL_SOVERSION ${AMCL_VERSION_MAJOR})
 if(CMAKE_COMPILER_IS_GNUCC)
     execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
                     OUTPUT_VARIABLE GCC_VERSION)
-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc -Wall -Wextra 
-Wno-strict-prototypes -Wunused-value -Wcast-align -Wunused-variable -Wundef 
-Wformat-security")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -static-libgcc -Wall -Wextra 
-Wno-strict-prototypes -Wunused-value -Wcast-align -Wunused-variable -Wundef 
-Wformat-security")
 
     if (GCC_VERSION VERSION_GREATER 4.8 OR GCC_VERSION VERSION_EQUAL 4.8)
         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow")
diff --git a/README.md b/README.md
index a1a39a4..7f99e35 100644
--- a/README.md
+++ b/README.md
@@ -208,9 +208,9 @@ Start a command prompt as an administrator
 ```
 git clone https://github.com/apache/incubator-milagro-crypto-c.git
 cd milagro-crypto-c
-mkdir target\build
-cd target\build
-cmake -G "MinGW Makefiles" -D WORD_SIZE=64 ..\..
+mkdir build
+cd build
+cmake -G "MinGW Makefiles" -D WORD_SIZE=64 ..
 mingw32-make
 mingw32-make test
 mingw32-make doc

Reply via email to