build: simplify test configuration in CMakeLists.txt

- Removed conditional check for MSVC when adding test commands.
- Ensured that test commands are always added regardless of the compiler.
This commit is contained in:
Yanyi Wu 2025-05-02 21:39:18 +08:00
parent b5dc8e7a35
commit aa410a69bb

View File

@ -33,11 +33,9 @@ if(CPPJIEBA_BUILD_TESTS)
message(STATUS "MSVC value: ${MSVC}")
ADD_SUBDIRECTORY(test)
if(NOT MSVC)
ADD_TEST(NAME ./test/test.run COMMAND ./test/test.run)
ADD_TEST(NAME ./load_test COMMAND ./load_test)
endif()
endif()
# ... other CMake configurations ...