Revision: 77672
http://sourceforge.net/p/brlcad/code/77672
Author: starseeker
Date: 2020-11-03 19:39:24 +0000 (Tue, 03 Nov 2020)
Log Message:
-----------
Probably going in another direction.
Modified Paths:
--------------
brlcad/branches/extbuild/src/other/ext/CMakeLists.txt
Modified: brlcad/branches/extbuild/src/other/ext/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/CMakeLists.txt 2020-11-03
18:42:27 UTC (rev 77671)
+++ brlcad/branches/extbuild/src/other/ext/CMakeLists.txt 2020-11-03
19:39:24 UTC (rev 77672)
@@ -234,33 +234,6 @@
endif(NOT EXISTS "${VCVARS_BAT}")
endif(NOT EXISTS "${VCVARS_BAT}")
-
- # Collect the dev env info. The VCVARS bat file may not exit without error,
- # even if it produces a working build environment. To deal with this, we
- # create a CMake script that sets up the environment and runs a user
- # supplied command.
- execute_process(
- COMMAND "${VCVARS_BAT}" && set
- OUTPUT_FILE vcvars.txt
- )
-
- # Eliminate backslashes on the end of lines for file(STRINGS)
- file(READ vcvars.txt vcvars)
- string(REPLACE "\\\n" "\n" nvcvars "${vcvars}")
- file(WRITE vcvars.txt "${nvcvars}")
-
- # Stage file
- file(WRITE "${CMAKE_BINARY_DIR}/win_exec.cmake" "# Set Visual Studio
environment vars and run programs")
-
- # Extract environment key/value pairs
- file(STRINGS vcvars.txt vlines)
- foreach(line IN LISTS vlines)
- if (line MATCHES "^([a-zA-Z0-9_-]+)=(.*)$")
- file(APPEND "${CMAKE_BINARY_DIR}/win_exec.cmake"
"set(ENV{${CMAKE_MATCH_1}} \"${CMAKE_MATCH_2}\")\n")
- endif()
- endforeach()
- file(APPEND "${CMAKE_BINARY_DIR}/win_exec.cmake" "execute_process(COMMAND
\${CMD})\n")
-
endif(MSVC)
# TODO - need to set these based on the feature flags...
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits