Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45bbf26

Browse filesBrowse files
JoyBinYappkins
authored andcommitted
support mingw-gcc on WIN platform (#14)
* 1. to support mingw-gcc on WIN platform 2. and the link of "tacopie @ 8714fce" should change to "https://github.com/Cylix/tacopie/tree/5b60d9a9e87aa4ba8118a66f6d65eb15ab0c8769" 3. the compile command: cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=YOUR:\PATH\cpp_redis . && mingw32-make install * Included OR conditional for WIN32 To ensure compatibility, I believe it best to include WIN32 in conjunction with MSVC. * Fixed endif for MSVC It is unnecessary to include the variable checked in the endif statement in CMake.
1 parent f444559 commit 45bbf26
Copy full SHA for 45bbf26

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ project(${PROJECT} CXX)
4444
###
4545
# compilation options
4646
###
47-
if (WIN32)
47+
if (MSVC OR WIN32)
4848
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /O2 /bigobj")
4949

5050
# was causing conflics with gtest build
@@ -70,7 +70,7 @@ if (WIN32)
7070
add_definitions(-DWIN32_LEAN_AND_MEAN)
7171
else ()
7272
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -Wextra -O3")
73-
endif (WIN32)
73+
endif ()
7474

7575

7676
###

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.