[CMakeLists.txt] Small fix.
This commit is contained in:
parent
ed15ed55c8
commit
fa8420e410
@ -39,7 +39,11 @@ if(MINGW)
|
||||
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -static-libstdc++ -static-libgcc -mconsole)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
else()
|
||||
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -std=c++14)
|
||||
endif()
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -pg)
|
||||
# target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -pg)
|
||||
|
@ -34,7 +34,11 @@ target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -DSOL_CHECK_ARGUMENT
|
||||
-DSOL_PRINT_ERRORS=1
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
else()
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -std=c++14)
|
||||
endif()
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME}_common PRIVATE -pg)
|
||||
|
||||
|
@ -39,7 +39,11 @@ if(MINGW)
|
||||
target_link_options(${CMAKE_PROJECT_NAME}_server PRIVATE -static-libstdc++ -static-libgcc -mconsole)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
else()
|
||||
target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -std=c++14)
|
||||
endif()
|
||||
|
||||
# target_compile_options(${CMAKE_PROJECT_NAME}_server PRIVATE -pg)
|
||||
# target_link_options(${CMAKE_PROJECT_NAME}_server PRIVATE -pg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user