mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-11 14:36:25 +08:00
fix: compile options are not strings
This commit is contained in:
@@ -12,9 +12,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
# Additional warnings and errors
|
||||
if(MSVC)
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
add_compile_options("/W4")
|
||||
add_compile_options(/W4)
|
||||
else()
|
||||
add_compile_options("-Wall -Wextra -Wno-register -Werror=vla")
|
||||
add_compile_options(-Wall -Wextra -Wno-register -Werror=vla)
|
||||
endif()
|
||||
|
||||
option(USE_OPENMP "flag to use OpenMP for multithreading" ON)
|
||||
|
||||
Reference in New Issue
Block a user