aboutsummaryrefslogtreecommitdiff
path: root/test/toml
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-19 16:45:15 +0800
committercrupest <crupest@outlook.com>2022-01-19 16:45:15 +0800
commit9c2974536f1728c839912eaeb287a4bbdcaa5a8a (patch)
tree649c476a0acd32ed1efb763dc9c1eed6b585fbe0 /test/toml
parent6f7d98a277f468fceb0585f9c4f4b3b6b64f5f3a (diff)
downloadcru-9c2974536f1728c839912eaeb287a4bbdcaa5a8a.tar.gz
cru-9c2974536f1728c839912eaeb287a4bbdcaa5a8a.tar.bz2
cru-9c2974536f1728c839912eaeb287a4bbdcaa5a8a.zip
...
Diffstat (limited to 'test/toml')
-rw-r--r--test/toml/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/toml/CMakeLists.txt b/test/toml/CMakeLists.txt
index 85ca7329..98270d30 100644
--- a/test/toml/CMakeLists.txt
+++ b/test/toml/CMakeLists.txt
@@ -3,9 +3,11 @@ add_executable(cru_toml_test
)
target_link_libraries(cru_toml_test PRIVATE cru_toml cru_test_base)
-add_custom_command(TARGET cru_toml_test POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:cru_toml_test> $<TARGET_FILE_DIR:cru_toml_test>
- COMMAND_EXPAND_LISTS
- )
+if (WIN32)
+ add_custom_command(TARGET cru_toml_test POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:cru_toml_test> $<TARGET_FILE_DIR:cru_toml_test>
+ COMMAND_EXPAND_LISTS
+ )
+endif()
gtest_discover_tests(cru_toml_test)