-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try running MSVC nmake install from a .cmake script
- Loading branch information
1 parent
a8e0ae9
commit ed8a0fe
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
execute_process( | ||
COMMAND "@VCVARS_BAT@" | ||
) | ||
execute_process( | ||
COMMAND nmake -f makefile.vc install INSTALLDIR=@CMAKE_BUNDLE_INSTALL_PREFIX@ SUFX= | ||
RESULT_VARIABLE TCL_RET | ||
WORKING_DIRECTORY "@TCL_SRC_DIR@/win" | ||
OUTPUT_VARIABLE MSG | ||
ERROR_VARIABLE MSG | ||
) | ||
|
||
if (TCL_RET) | ||
message(FATAL_ERROR "Tcl install failed: ${MSG}\n") | ||
endif (TCL_RET) | ||
|
||
message("Tcl install succeeded: ${MSG}\n") | ||
|
||
# Local Variables: | ||
# tab-width: 8 | ||
# mode: cmake | ||
# indent-tabs-mode: t | ||
# End: | ||
# ex: shiftwidth=2 tabstop=8 | ||
|