aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 80fb9d9..8981122 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,6 +5,13 @@ include_directories(
add_executable(spm spm.c config.c compat.c deps.c fs.c rpath.c find.c shell.c archive.c strings.c relocation.c install.c config_global.c manifest.c checksum.c extern/url.c version_spec.c spm_build.c mime.c internal_cmd.c)
target_link_libraries(spm rt crypto ssl curl)
+
+if(MSVC)
+ target_compile_options(spm PRIVATE /W4 /WX)
+else()
+ target_compile_options(spm PRIVATE -Wall -Wextra)
+endif()
+
install(
TARGETS spm
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin