2023-10-04 12:08:27 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-06-15 02:51:31 +08:00
|
|
|
index f088f6a..a8bcf80 100644
|
2022-04-30 02:40:30 +08:00
|
|
|
--- a/CMakeLists.txt
|
2023-10-04 12:08:27 +08:00
|
|
|
+++ b/CMakeLists.txt
|
2024-06-15 02:51:31 +08:00
|
|
|
@@ -134,7 +134,7 @@ endif()
|
2023-10-04 12:08:27 +08:00
|
|
|
|
|
|
|
if(NOT DEFINED CAF_USE_STD_FORMAT)
|
|
|
|
set(CAF_USE_STD_FORMAT OFF CACHE BOOL "Enable std::format support" FORCE)
|
|
|
|
- if(NOT CMAKE_CROSSCOMPILING)
|
|
|
|
+ if(0)
|
|
|
|
set(snippet "#include <format>
|
|
|
|
#include <iostream>
|
|
|
|
int main() { std::cout << std::format(\"{}\", \"ok\"); }")
|
2024-06-15 02:51:31 +08:00
|
|
|
@@ -180,8 +180,6 @@ endif()
|
2023-10-04 12:08:27 +08:00
|
|
|
|
|
|
|
# -- create the libcaf_test target ahead of time for caf_core ------------------
|
|
|
|
|
|
|
|
-add_library(libcaf_test)
|
2024-06-15 02:51:31 +08:00
|
|
|
-
|
2023-10-04 12:08:27 +08:00
|
|
|
# -- add uninstall target if it does not exist yet -----------------------------
|
|
|
|
|
2024-06-15 02:51:31 +08:00
|
|
|
if(NOT TARGET uninstall)
|
|
|
|
@@ -326,8 +324,6 @@ function(caf_add_component name)
|
|
|
|
list(APPEND targets ${tst_bin_target})
|
2023-10-04 12:08:27 +08:00
|
|
|
add_executable(${tst_bin_target}
|
2024-06-15 02:51:31 +08:00
|
|
|
${CAF_ADD_COMPONENT_LEGACY_TEST_SOURCES})
|
2023-10-04 12:08:27 +08:00
|
|
|
- target_link_libraries(${tst_bin_target} PRIVATE libcaf_test
|
2024-06-15 02:51:31 +08:00
|
|
|
- ${CAF_ADD_COMPONENT_DEPENDENCIES} ${lib_target})
|
2023-10-04 12:08:27 +08:00
|
|
|
target_include_directories(${tst_bin_target} PRIVATE
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/tests/legacy")
|
|
|
|
if(CAF_ADD_COMPONENT_LEGACY_TEST_SUITES)
|
2024-06-15 02:51:31 +08:00
|
|
|
@@ -383,8 +379,6 @@ endfunction()
|
2023-10-04 12:08:27 +08:00
|
|
|
|
|
|
|
add_subdirectory(libcaf_core)
|
|
|
|
|
|
|
|
-add_subdirectory(libcaf_test)
|
2024-06-15 02:51:31 +08:00
|
|
|
-
|
2023-10-04 12:08:27 +08:00
|
|
|
if(CAF_ENABLE_NET_MODULE)
|
|
|
|
add_subdirectory(libcaf_net)
|
2024-06-15 02:51:31 +08:00
|
|
|
endif()
|