> On Aug. 10, 2015, 6:42 p.m., Alex Clemmer wrote: > > 3rdparty/libprocess/3rdparty/CMakeLists.txt, line 77 > > <https://reviews.apache.org/r/37273/diff/2/?file=1036047#file1036047line77> > > > > So, why change the value to `TRUE` here? Is there some consequence of > > this, or is it just clearer to you? > > > > (Also, if we want to go this way, it probably makes sense to change the > > `""` we use in the `ExternalProject_Add` calls as well, just for > > consistency.) > > haosdent huang wrote: > Hmm, because I find > > ``` > set(GLOG_CONFIG_CMD "") > ``` > > the visual studio would still execute default configure step which > requires CMakeLists.txt . > > I still don't know why its behaivour would become this here. > > Alex Clemmer wrote: > Interesting! What does it say on your machine. On my machine (I will have > to confirm this in a minute) I remember it saying that there is "no configure > step" for glog. Do you see something different? > > haosdent huang wrote: > LoL, I suck on this strange point in serveral hours and try possible ways > to skip it. But all of them are failed. > If I direct pass "" to ExternalProject_Add, it could skip the > configuration step. But I set "" to a variable and pass this variable as > configuration step in ExternalProject_Add. It would become try to use default > CMake configuration step, which need CMakeLists.txt. I use message to debug > the variable and compare the variables with "", I am sure the variable is > setted to empty string. > > My CMake version is 3.3; Visual studio version is 2015 community version; > OS is win7; Project code is in a independent disk. > > haosdent huang wrote: > I still try to find the reason recently. > > haosdent huang wrote: > When I set(GLOG_CONFIG_CMD ""), the step become this in Visual Studio. > > ``` > <Message > Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Performing > configure step for 'glog-0.3.3'</Message> > <Command > Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">setlocal > cd > Y:\workspace\cpp\mesos\build\3rdparty\libprocess\3rdparty\glog-0.3.3\src\glog-0.3.3-build > if %errorlevel% neq 0 goto :cmEnd > Y: > if %errorlevel% neq 0 goto :cmEnd > "C:\Program Files (x86)\CMake\bin\cmake.exe" "-GVisual Studio 14 2015" > Y:/workspace/cpp/mesos/build/3rdparty/libprocess/3rdparty/glog-0.3.3/src/glog-0.3.3 > if %errorlevel% neq 0 goto :cmEnd > "C:\Program Files (x86)\CMake\bin\cmake.exe" -E touch > Y:/workspace/cpp/mesos/build/3rdparty/libprocess/3rdparty/glog-0.3.3/src/glog-0.3.3-stamp/$(Configuration)/glog-0.3.3-configure > if %errorlevel% neq 0 goto :cmEnd > :cmEnd > endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone > :cmErrorLevel > exit /b %1 > :cmDone > if %errorlevel% neq 0 goto :VCEnd</Command> > ```
Which VS are you using? - Alex ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/37273/#review94776 ----------------------------------------------------------- On Sept. 9, 2015, 2:40 a.m., haosdent huang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/37273/ > ----------------------------------------------------------- > > (Updated Sept. 9, 2015, 2:40 a.m.) > > > Review request for mesos, Artem Harutyunyan, Alex Clemmer, Joris Van > Remoortere, and Joseph Wu. > > > Repository: mesos > > > Description > ------- > > Add CMake macro VsBuildCommand in libprocess. > > > Diffs > ----- > > 3rdparty/libprocess/3rdparty/CMakeLists.txt > 997cc0d0e316e316136d4746e50e9e292a82b36b > 3rdparty/libprocess/cmake/ProcessConfigure.cmake > 12506a1369de005285268f895f365aba0c560f78 > 3rdparty/libprocess/cmake/ProcessTestsConfigure.cmake > 9e4dcb83a8cc4e95a2a38573944f6b38e2eac76e > 3rdparty/libprocess/cmake/macros/Noop.cmake PRE-CREATION > 3rdparty/libprocess/cmake/macros/VsBuildCommand.bat PRE-CREATION > 3rdparty/libprocess/cmake/macros/VsBuildCommand.cmake PRE-CREATION > > Diff: https://reviews.apache.org/r/37273/diff/ > > > Testing > ------- > > > Thanks, > > haosdent huang > >