diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-04-10 12:48:05 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-04-10 12:48:05 +0200 |
commit | 2fe846f09fc0cb637eadf84e431bc60c5eee45e6 (patch) | |
tree | 260ea57f6d7babdc798eaba09de558433f638004 | |
parent | 33426992ecd5b6d95795e1d465eb085a75fa726f (diff) | |
download | tdv-master.tar.gz tdv-master.tar.xz tdv-master.zip |
Fix running tests in Windows buildsHEADorigin/mastermaster
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 36638ea..aaae3f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ if (USE_SYSTEM_TERMO) if (NOT Termo_FOUND) message (FATAL_ERROR "System termo library not found") endif () -else () +elseif (NOT WIN32) # We don't want the library to install, but EXCLUDE_FROM_ALL ignores tests add_subdirectory (termo EXCLUDE_FROM_ALL) file (WRITE ${PROJECT_BINARY_DIR}/CTestCustom.cmake @@ -238,7 +238,7 @@ if (WIN32) set_property (SOURCE ${resource_file} APPEND PROPERTY OBJECT_DEPENDS ${icon_ico}) else () - list (APPEND project_libraries ${Ncursesw_LIBRARIES} termo-static) + list (APPEND project_libraries ${Ncursesw_LIBRARIES} ${Termo_LIBRARIES}) list (APPEND project_sources src/${PROJECT_NAME}-tui.c) endif () @@ -383,7 +383,7 @@ if (BUILD_TESTING) add_executable (test-${name} src/test-${name}.c ${project_common_sources}) target_link_libraries (test-${name} ${project_common_libraries}) - add_test (test-${name} test-${name}) + add_test (NAME test-${name} COMMAND test-${name}) endforeach () endif () |