Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #188 from sidhoda/fix-build-dotnet-bat
Browse files Browse the repository at this point in the history
Set OPENDNP3_DIR in build-dotnet.bat
  • Loading branch information
jadamcrain committed Dec 22, 2016
2 parents 444a59d + f63dbbc commit 387ee20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-dotnet.bat
Expand Up @@ -16,10 +16,12 @@ IF ["%OSSL_LIB32_DIR%"]==[] (
ECHO OpenSSL could not be found
GOTO :QUIT
)
ECHO OSSL_LIB32_DIR is %OSSL_LIB32_DIR%
IF ["%VS140COMNTOOLS%"]==[] (
ECHO VS2015 could not be found
GOTO: QUIT
)
ECHO VS140COMNTOOLS is %VS140COMNTOOLS%

:BUILD
CALL "%VS140COMNTOOLS%VsDevCmd.bat"
Expand All @@ -28,6 +30,9 @@ IF EXIST build RMDIR build /s /q
MKDIR build\lib
CD build

SET OPENDNP3_DIR=%CD%\lib
ECHO OPENDNP3_DIR is %OPENDNP3_DIR%

cmake .. -DCMAKE_INSTALL_PREFIX=lib -DDNP3_TEST=ON -DDNP3_TLS=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G"Visual Studio 14 2015"
msbuild opendnp3.sln /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM%
msbuild INSTALL.vcxproj /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM%
Expand Down

0 comments on commit 387ee20

Please sign in to comment.