nmake

CMake finds the correct library, but VC++ attempts to link with something else

旧城冷巷雨未停 提交于 2019-12-11 01:09:13
问题 I have a CMake module to locate FreeGLUT: FIND_PATH(FREEGLUT_INCLUDE_DIR NAMES GL/freeglut.h) FIND_LIBRARY(FREEGLUT_LIBRARY NAMES freeglut freeglut_static) SET(FREEGLUT_LIBRARIES ${FREEGLUT_LIBRARY}) SET(FREEGLUT_INCLUDE_DIRS ${FREEGLUT_INCLUDE_DIR}) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(FreeGLUT DEFAULT_MSG FREEGLUT_LIBRARY FREEGLUT_INCLUDE_DIR) MARK_AS_ADVANCED(FREEGLUT_INCLUDE_DIR FREEGLUT_LIBRARY) It works fine and locates freeglut_static.lib when I

Visual Studio 2012 Platform Toolset set Incorrectly

被刻印的时光 ゝ 提交于 2019-12-10 19:09:59
问题 I have a C++ project that I created in VS 2010 and I'm now running it in 2012, but I still want to use the 2010 compiler. All my other projects in the same solution are fine but for some reason this one NMake file going to Microsoft Visual Studio 11.0 for the MSBuild.exe instead of Microsoft Visual Studio 10.0 like it is supposed to. Does Anyone know how to change this? Normally I would just open the vcxproj and go to the platformtool set and change it from 11 to 10 but my NMake file won't

Verbose NMake Makefiles using CMake

一笑奈何 提交于 2019-12-10 13:46:09
问题 I have been following instructions from the FAQ: Is there an option to produce more 'verbose' compiling?. I have now: $ cat C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows.cmake [...] # uncomment these out to debug nmake and borland makefiles set(CMAKE_START_TEMP_FILE "") set(CMAKE_END_TEMP_FILE "") set(CMAKE_VERBOSE_MAKEFILE 1) I then regenerate my project, and run nmake: > cmake --version cmake version 2.8.12.2 > cmake -G"NMake Makefiles" ..\project > nmake VERBOSE=1 [..

How do I build libcurl for 64-bit Windows in/using Visual Studio 2010?

回眸只為那壹抹淺笑 提交于 2019-12-10 10:57:14
问题 So initially, I followed the instructions of BUILD.WINDOWS.txt and I was able to get libcurl building 32-bit by creating a new file winbuild.bat and placing it in the root directory of my curl folder: CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" CD winbuild DEL CURL_OBJS.inc DEL LIBCURL_OBJS.inc DEL vc100.idb nmake /f Makefile.vc mode=dll VC=10 ENABLE_WINSSL=yes GEN_PDB=yes MACHINE=X86 CD .. EXIT /B 0 I then went to File / New / Project from Existing Code...

How do I force cmake to use cl.exe without full path?

落花浮王杯 提交于 2019-12-10 10:23:07
问题 I am building an open source project (kst, v2.0.8) that uses CMake. I am using CMake v2.8.12.2 and MSVC 2008 as a compiler and am generating NMake makefiles to build it on the command line. I can get it to build successfully with this setup. These versions are mandated so I cannot currently use a later version of CMake or MSVC. I need to be able to perform a source code analysis of kst using HP's Fortify and to be able to use it from the command line it works in one of two ways: Touchless

nmake - simulating eval function

淺唱寂寞╮ 提交于 2019-12-08 08:36:57
问题 I'd like to get value of variable named $(MYVAR)_SOME_SUFFIX in the b.mak makefile. Instead I get "b.mak(2) : fatal error U1001: syntax error : illegal character '$' in macro" # ---- a.mak ---- all : set MYVAR=SOME_PREFIX nmake -f b.mak #--- END --- # ---- b.mak ---- all: @echo $($(MYVAR)_SOME_SUFFIX) #--- END --- 回答1: You can sort of do what you want with inline files. # ---- piotr1.mak ---- all : nmake -nologo -f piotr2.mak MYVAR=BBB #--- END --- # ---- piotr2.mak ---- AAA_SETTING=17 BBB

Added Makefile project to Visual Studio 2015 solution is always out of date

自古美人都是妖i 提交于 2019-12-07 06:47:57
问题 I have a rather large solution (80 projects). Recently I upgraded to VS2015U1 and modified the solution to include a makefile (nmake) project that is a prerequisite to all other projects. The intention was that this makefile should copy some third party software into the project's bin directory to make it easier to bring things together for testing and packaging. The problem is, this makefile project always appears to be out-of-date. This mean I always get a dialog popup when you hit F5 to

How is the order of compilation of source files decided?

此生再无相见时 提交于 2019-12-06 09:13:33
I have a workspace containing many *.c files, which I compile. (I could use any toolchain say MSVC6.0, or gcc etc) Which source file is compiled first? How is the order of the files to be compiled subsequently decided? The order of compilation is not specified by the C standard. Since there is no need for the construction of global objects like in C++, there is no situation where the order of compilation is relevant in C. Generally, this is not specified anywhere. Especially when using eg. parallel make, the order of compilation is pretty much arbitrary. VC : By project folder, then

printing long compilation lines with MS NMAKE

核能气质少年 提交于 2019-12-06 05:13:34
问题 I have a legacy MS NMAKE Makefile I need to fix a few bugs in. There are some very long command lines I wish to debug that are being executed using the NMAKE trick of "inline files": dep: cmd @<<tmpfilename cmd_args.. << When changing the line to dep: echo cmd @<<tmpfilename cmd_args.. << NMAKE complains that the line is too long. Is there any other trick I can apply in order to view the command line NMAKE is actually executing? 回答1: In order to keep the temporary file that keeps your command

Added Makefile project to Visual Studio 2015 solution is always out of date

爷,独闯天下 提交于 2019-12-05 10:53:59
I have a rather large solution (80 projects). Recently I upgraded to VS2015U1 and modified the solution to include a makefile (nmake) project that is a prerequisite to all other projects. The intention was that this makefile should copy some third party software into the project's bin directory to make it easier to bring things together for testing and packaging. The problem is, this makefile project always appears to be out-of-date. This mean I always get a dialog popup when you hit F5 to test. I've Googled till my Googler was sore, including everything I found on stackoverflow. None of the