Skip to content

Commit f9fbd1a

Browse files
Updating test defines
1 parent cf35cc5 commit f9fbd1a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ else()
167167
"-Werror")
168168
endif()
169169

170-
target_compile_options(runcpp2 PRIVATE ${STANDARD_COMPILE_FLAGS})
170+
target_compile_options(runcpp2 PRIVATE "${STANDARD_COMPILE_FLAGS}")
171171

172172
# Define the version macro
173173
target_compile_definitions(runcpp2 PUBLIC RUNCPP2_VERSION="${RUNCPP2_PROJECT_VERSION}")
174174

175175
add_executable(runcpp2_main "${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/main.cpp")
176-
target_compile_options(runcpp2_main PRIVATE ${STANDARD_COMPILE_FLAGS})
176+
target_compile_options(runcpp2_main PRIVATE "${STANDARD_COMPILE_FLAGS}")
177177
target_link_libraries(runcpp2_main PRIVATE runcpp2 ssLogger ghc_filesystem)
178178
set_target_properties(runcpp2_main PROPERTIES OUTPUT_NAME "runcpp2")
179179

Src/Tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ target_compile_definitions(BuildsManagerTest PRIVATE INTERNAL_RUNCPP2_UNIT_TESTS
1212

1313
function(create_data_test TEST_NAME)
1414
add_executable("${TEST_NAME}" "${CMAKE_CURRENT_LIST_DIR}/Data/${TEST_NAME}.cpp")
15+
target_compile_options("${TEST_NAME}" PRIVATE "${STANDARD_COMPILE_FLAGS}")
1516
target_compile_definitions("${TEST_NAME}" PRIVATE INTERNAL_RUNCPP2_UNIT_TESTS=1)
1617
target_link_libraries("${TEST_NAME}" PUBLIC runcpp2 ssTest)
17-
18+
1819
endfunction()
1920

2021
create_data_test(FilePropertiesTest)

0 commit comments

Comments
 (0)