Skip to content

Commit

Permalink
Fix CMake if() formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Dec 7, 2024
1 parent c00ecec commit 806fc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 806fc44

Please sign in to comment.