Jump to content

Cmake Visualstudio 2017/2019 preview and openjk


JaceSolarisVIII

Recommended Posts

Posted

Please help. I just received an update to Visual studio 2019 preview, I also have Visual studio 2015 and Visual studio 2017 installed and fully updated. I have cmake-3.13.4-win64-x64 installed. I am no longer able to Configure or Generate a solution with Cmake.

https://www.moddb.com/mods/serenityjediengine-20/images/cmake#imagebox

 

 

Would it be possible for the OpenJK team to update there build to enable solution generation with Visual studio 2017 and Visual studio 2019. 

Posted

The red text you’re seeing is a warning. It’s safe to ignore :)

 

Ahh ok thx. I tried adding a new "CreateVisualStudio2015Projects.windows batch file" and edited it to be called "CreateVisualStudio2017Projects. windows batch file" then edited it to read.

@REM Create OpenJK projects for Visual Studio 2017 using CMake
@[member='Echo'] off
for %%X in (cmake.exe) do (set FOUND=%%~$PATH:X)
if not defined FOUND (
	echo CMake was not found on your system. Please make sure you have installed CMake
	echo from http://www.cmake.org/ and cmake.exe is installed to your system's PATH
	echo environment variable.
	echo.
	pause
	exit /b 1
) else (
	echo Found CMake!
)
if not exist build\nul (mkdir build)
pushd build
cmake -G "Visual Studio 15" -D CMAKE_INSTALL_PREFIX=../install ..
popd
pause

This seems to have worked also and builds a solution that opens in Visual studio 2017 and compiles correctly.

 

Thankyou anyway ;-)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...