diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2019-11-21 01:05:50 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-21 01:05:50 -0500 | 
| commit | 0c2b6efeb29f184a42286bb9adeda0f1988c45e1 (patch) | |
| tree | 54ebb52effff630eb528582349880e7e8a8d9896 /CMakeLists.txt | |
| parent | 6aac41d2f220424591f306b15d0a47a7a11e88c2 (diff) | |
| parent | 6a0aa493a001df88c31dc41d3bd03b9433347235 (diff) | |
| download | reloc-0c2b6efeb29f184a42286bb9adeda0f1988c45e1.tar.gz | |
Merge pull request #1 from jhunkeler/jhunkeler-patch-1
Implement GitHub Actions
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 | 
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)  | 
