Remove useless compil options for C++20

This commit is contained in:
Louis Rubet 2022-09-22 11:28:50 +02:00
parent b69b49d9fb
commit 4b9413b63b

View file

@ -79,12 +79,9 @@ set(LINENOISE_NG_SRC_FILES
# compiler options
set_source_files_properties(${RPN_SRC_FILES} COMPILE_FLAGS "-Wall -Wextra -pedantic -Wno-missing-field-initializers")
add_compile_options("-std=c++20" "-Wl,--no-as-needed"
add_compile_options("-std=c++20"
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb>"
"$<$<CONFIG:RELEASE>:-O3>")
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
add_compile_options("-Wl,--no-as-needed -Wc++20-extensions")
endif()
add_executable(rpn ${RPN_SRC_FILES} ${LINENOISE_NG_SRC_FILES})