Browse Source

Add full NS0 compilation to appveyor

Stefan Profanter 6 years ago
parent
commit
a894e31e41
2 changed files with 9 additions and 2 deletions
  1. 2 2
      CMakeLists.txt
  2. 7 0
      appveyor.yml

+ 2 - 2
CMakeLists.txt

@@ -484,8 +484,8 @@ add_dependencies(open62541-amalgamation-source open62541-generator-types
 
 
 set(NODESET_MAX_STR_LEN 0)
-if ( (MSVC) AND (MSVC_VERSION LESS 1600))
-    # Visual Studio 2008 has a maximum string length of 65535 bytes
+if (MSVC)
+    # Visual Studio has a maximum string length of 65535 bytes
     set(NODESET_MAX_STR_LEN 65535)
 endif()
 

+ 7 - 0
appveyor.yml

@@ -111,6 +111,13 @@ build_script:
   - rd /s /q build
   - md build
   - cd build
+  - echo. && echo "##### Testing %CC_NAME% with full NS0 #####" && echo.
+  - cmake -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_FULL_NS0:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -G"%CC_NAME%" ..
+  - '%MAKE%'
+  - cd ..
+  - rd /s /q build
+  - md build
+  - cd build
   - echo. && echo "##### Testing %CC_NAME% with amalgamation #####" && echo.
   - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_BUILD_EXAMPLES:BOOL=ON -DUA_ENABLE_AMALGAMATION:BOOL=ON -DUA_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -DBUILD_SHARED_LIBS:BOOL=OFF -G"%CC_NAME%" ..
   - '%MAKE%'