From 9f64660938131ae290cd5c0f9d40b87d65d15772 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 12:19:12 +0200 Subject: [PATCH 1/2] use project to set language --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ae70a..9a0f674 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,8 +21,7 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) "${CMAKE_CURRENT_SOURCE_DIR}/cmake/toolchain.cmake") endif() -enable_language(CXX) -project(pacman) +project(pacman LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) From 43f3514b044b0eb3efa1011f8ad444f083b5d483 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 12:19:31 +0200 Subject: [PATCH 2/2] make set_property global --- cmake/toolchain.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/toolchain.cmake b/cmake/toolchain.cmake index d5bed4f..c16fcee 100644 --- a/cmake/toolchain.cmake +++ b/cmake/toolchain.cmake @@ -1,7 +1,7 @@ #compile with warnings if(WIN32) add_compile_options(/W4 /WX) - set_property(PROPERTY + set_property(GLOBAL PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") else() add_compile_options(-Wall -Wextra -pedantic -Werror)