Don't use the -pthread option when MSVC is being used.
This commit is contained in:
parent
366a0f5065
commit
86090f1a7d
|
@ -3,7 +3,10 @@ project(Yerbacon VERSION 0.0.1 LANGUAGES C CXX)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_FLAGS "-Wall -pthread")
|
set(CMAKE_CXX_FLAGS "-Wall")
|
||||||
|
if (NOT MSVC)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||||
|
endif()
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
||||||
|
|
||||||
if((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang))
|
if((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang))
|
||||||
|
|
Loading…
Reference in New Issue