I am trying to create some third-party libraries from a source using Visual Studio 2015. I am creating a solution file using cmake 3.2.3 and I am using the ExternalProject_add module. I previously compiled and built this cmake code in 32-bit Visual Studio 2012, but not in 64 bits.
Now I am trying to create it in 64-bit Visual Studio 2015, and the IDE inexplicably freezes during the build process using debugging and release. Sometimes the build processes are still running, for example cl.exe, but nothing progresses, and I have to go into the task manager and finish all the processes related to the build. Then I try to build it again, and sometimes it builds successfully, and in other cases it encounters the same error; hovering in different lines of code depending on how far it got into the assembly.
I had a problem with the same as when creating the solution in the 32-bit version.
I am not sure if there is a problem installing Visual Studio 2015, or if it is a problem with my cmake code causing this waving. I don't know much about cmake outside of ExternalProject_add, so any help with cmake or visual studio is really appreciated.
Here is the external project code that initiates the build:
include(ExternalProject) ExternalProject_Add(${3rdPartyLibraryName} DOWNLOAD_DIR ${3rdParty_CacheDir} URL ${3rdPartyURL} SOURCE_DIR ${3rdPartySourceDir} TMP_DIR ${3rdPartySourceDir}/${3rdPartyLibraryName} BUILD_COMMAND nmake /f makefile.vc MSVC_VER=${MSVC_VERSION} WIN64=YES INCDIR=${CMAKE_SOURCE_DIR}/../3rdParty/${3rdPartyLibraryName}/test/include BINARY_DIR ${3rdPartySourceDir} CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:string=${3rdPartySourceDir} INSTALL_COMMAND "" )
Edit
In addition, I tried to create this from the command line configured with the VS 2015 environment and received the same error.
visual-studio-2015 cmake
aDrow
source share