Przeglądaj źródła

do not use the readspeed example for msvc

Julius Pfrommer 9 lat temu
rodzic
commit
2600d3431a
2 zmienionych plików z 4 dodań i 0 usunięć
  1. 2 0
      CMakeLists.txt
  2. 2 0
      examples/CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -398,8 +398,10 @@ if(BUILD_EXAMPLES)
     add_executable(server_variable ${PROJECT_SOURCE_DIR}/examples/server_variable.c $<TARGET_OBJECTS:open62541-object>)
 	target_link_libraries(server_variable ${LIBS})
 
+if(NOT MSVC)
 	add_executable(server_readspeed ${PROJECT_SOURCE_DIR}/examples/server_readspeed.c $<TARGET_OBJECTS:open62541-object>)
 	target_link_libraries(server_readspeed ${LIBS})
+endif()
 
 	add_executable(server_datasource ${PROJECT_SOURCE_DIR}/examples/server_datasource.c $<TARGET_OBJECTS:open62541-object>)
 	target_link_libraries(server_datasource ${LIBS})

+ 2 - 0
examples/CMakeLists.txt

@@ -29,8 +29,10 @@ target_link_libraries(server_firstSteps ${LIBS})
 add_executable(client_firstSteps client_firstSteps.c)
 target_link_libraries(client_firstSteps ${LIBS})
 
+if(NOT MSVC)
 add_executable(server_repeated_job server_repeated_job.c)
 target_link_libraries(server_repeated_job ${LIBS})
+endif()
 
 if(NOT ENABLE_AMALGAMATION)
 	add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/src_generated/nodeset.h ${PROJECT_BINARY_DIR}/src_generated/nodeset.c