mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
cmake
This commit is contained in:
parent
9edad35713
commit
20caf4d1e1
@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.10)
|
|||||||
project(ipc)
|
project(ipc)
|
||||||
|
|
||||||
add_compile_definitions(__IPC_LIBRARY__)
|
add_compile_definitions(__IPC_LIBRARY__)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(MSVC)
|
||||||
add_compile_options("-std=gnu++1z")
|
|
||||||
else()
|
|
||||||
add_compile_options("/std:c++17")
|
add_compile_options("/std:c++17")
|
||||||
|
else()
|
||||||
|
add_compile_options("-std=gnu++1z")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories("../include")
|
include_directories("../include")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user