Skip to content

Commit d50cb46

Browse files
committed
Fix compilation
1 parent b98af27 commit d50cb46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ elseif(EMSCRIPTEN)
3636
# Uncomment to generate an JS file testable with NodeJS (HTML must be commented)
3737
set_target_properties(${test_project_name} PROPERTIES SUFFIX ".js")
3838
target_link_options(${test_project_name} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-sASSERTIONS> "-sENVIRONMENT=[\"web\",\"node\"]" -sABORTING_MALLOC=0 -sALLOW_MEMORY_GROWTH=1 -sINITIAL_MEMORY=134217728)
39-
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 main.cpp -msse4.2 -msimd128 -fconstexpr-ops-limit=2147483647 -fconstexpr-steps=2147483647)
39+
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 -msse4.2 -msimd128 -fconstexpr-ops-limit=2147483647 -fconstexpr-steps=2147483647)
4040
else()
4141
# GCC
4242
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
43-
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 main.cpp -msse4.2 -fconstexpr-ops-limit=2147483647 -fconstexpr-depth=2147483647)
43+
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 -msse4.2 -fconstexpr-ops-limit=2147483647 -fconstexpr-depth=2147483647)
4444
# Clang
4545
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
46-
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 main.cpp -msse4.2 -fconstexpr-steps=2147483647 -fconstexpr-depth=2147483647)
46+
target_compile_options( ${test_project_name} PRIVATE -finput-charset=UTF-8 -fexec-charset=UTF-8 -msse4.2 -fconstexpr-steps=2147483647 -fconstexpr-depth=2147483647)
4747
# Unkown
4848
else()
4949
message(FATAL_ERROR "Unkown compiler")

0 commit comments

Comments
 (0)