Skip to content

Commit 293fd5e

Browse files
committed
Fix: Correct CMake generator expression syntax for compiler flags
1 parent 431ae11 commit 293fd5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (MSVC)
1414
else()
1515
add_compile_options(-Wall -Wextra -Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter)
1616
# Aggressive optimizations for GCC/Clang
17-
add_compile_options($<$<CONFIG:Release>:-O3 -march=native -flto>)
17+
add_compile_options($<$<CONFIG:Release>:-O3;-march=native;-flto>)
1818
if(NOT APPLE)
1919
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
2020
endif()

0 commit comments

Comments
 (0)