diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1bb4610..55d165f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -69,7 +69,7 @@ set(APPROVAL_TEST_FILES ${PROJECT_SOURCE_DIR}/tests/approval_tests/reporter_console.cpp ${PROJECT_SOURCE_DIR}/tests/approval_tests/reporter_teamcity.cpp) -if(CMAKE_SYSTEM_NAME MATCHES "Emscripten") +if (CMAKE_SYSTEM_NAME MATCHES "Emscripten") # For Emcripten, we need the working directory to be where the binaries are created, # because Emscripten will generate *.data files there that we need to load. # We don't have access to the filesystem otherwise. @@ -138,7 +138,7 @@ target_compile_definitions(snitch_approval_tests PUBLIC SNITCH_WITH_SHORTHAND_MACROS=0) copy_shared_library(snitch_approval_tests) -if(CMAKE_SYSTEM_NAME MATCHES "Emscripten") +if (CMAKE_SYSTEM_NAME MATCHES "Emscripten") # Add approval test data to the preload-file list target_link_options(snitch_approval_tests PUBLIC "SHELL:--preload-file ${PROJECT_SOURCE_DIR}/tests/approval_tests/data@data")