silverf0x / RpcView

RpcView is a free tool to explore and decompile Microsoft RPC interfaces
GNU General Public License v3.0
895 stars 247 forks source link

Fix CmakeLists.txt for VS 2019 #42

Open Selora opened 3 years ago

Selora commented 3 years ago

Hey there, I'm too lazy to make a pull request. In order to make this work with VS2019, the following should be added to CMakeLists.txt in ./RpcCore: https://github.com/silverf0x/RpcView/blob/60569c6e6d1ed8f19af61df918e133d6c2c009b1/RpcCore/CMakeLists.txt#L26 to:

if(${CMAKE_GENERATOR} MATCHES "Win64")
            AddRpcCore(${Dir})
elseif(${CMAKE_GENERATOR_PLATFORM} MATCHES "x64")
        AddRpcCore(${Dir})

Edit: The following line should be used when building the project: cmake -G"Visual Studio 16 2019" -A x64 ../../

This is all because they introduced a new semantic in CMAKE for VS2019.

Cheers