Skip to content

Commit 08a2a07

Browse files
authored
Merge pull request #67 from Debashis08/feature-update-to-mingw
Feature update to mingw
2 parents b4a2a15 + b48e6ad commit 08a2a07

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# CMakeList.txt : CMake project for DataStructures_Algorithms, include source and define
22
# project specific logic here.
33
#
4-
cmake_minimum_required (VERSION 3.8)
5-
6-
# Enable Hot Reload for MSVC compilers if supported.
7-
if (POLICY CMP0141)
8-
cmake_policy(SET CMP0141 NEW)
9-
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
10-
endif()
11-
12-
project ("DataStructures_Algorithms")
4+
cmake_minimum_required (VERSION 3.10)
5+
project ("datastructures-algorithms")
136

147
set(CMAKE_CXX_STANDARD 14)
158
set(CMAKE_CXX_STANDARD_REQUIRED ON)

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"binaryDir": "${sourceDir}/Build/build/${presetName}",
99
"installDir": "${sourceDir}/Build/install/${presetName}",
1010
"cacheVariables": {
11-
"CMAKE_C_COMPILER": "cl.exe",
12-
"CMAKE_CXX_COMPILER": "cl.exe"
11+
"CMAKE_C_COMPILER": "gcc",
12+
"CMAKE_CXX_COMPILER": "g++"
1313
},
1414
"condition": {
1515
"type": "equals",

Tests/0001_Basics/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cmake_policy(SET CMP0135 NEW)
2+
13
include(FetchContent)
24
FetchContent_Declare(
35
googletest

Tests/0002_Tree/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cmake_policy(SET CMP0135 NEW)
2+
13
include(FetchContent)
24
FetchContent_Declare(
35
googletest

Tests/0003_Graph/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cmake_policy(SET CMP0135 NEW)
2+
13
include(FetchContent)
24
FetchContent_Declare(
35
googletest

0 commit comments

Comments
 (0)