[CMakeLists.txt] Small fix.

This commit is contained in:
Quentin Bazin 2020-01-23 14:27:31 +09:00
parent ed15ed55c8
commit fa8420e410
3 changed files with 16 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)