aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2019-11-21 01:05:50 -0500
committerGitHub <noreply@github.com>2019-11-21 01:05:50 -0500
commit0c2b6efeb29f184a42286bb9adeda0f1988c45e1 (patch)
tree54ebb52effff630eb528582349880e7e8a8d9896 /CMakeLists.txt
parent6aac41d2f220424591f306b15d0a47a7a11e88c2 (diff)
parent6a0aa493a001df88c31dc41d3bd03b9433347235 (diff)
downloadreloc-0c2b6efeb29f184a42286bb9adeda0f1988c45e1.tar.gz
Merge pull request #1 from jhunkeler/jhunkeler-patch-1
Implement GitHub Actions
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c46d94d..fef8144 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 2.8.11)
project(relocate C)
set(VERSION "1.2.2")
set(CMAKE_C_STANDARD 99)
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra")
+if(MSVC)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /Wall")
+else()
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra")
+endif()
enable_testing()
add_subdirectory(test)