Permalink
Browse files

Added support prepping on Visual Studio 2012 (Visual Studio 11).

  • Loading branch information...
1 parent 3636a14 commit d2d86afe11914f3a61d1ae57eadbeca9e8608806 @Fryguy Fryguy committed Sep 14, 2012
Showing with 17 additions and 1 deletion.
  1. +3 −1 cmake/Win.cmake
  2. +7 −0 prep2012.cmd
  3. +7 −0 prep2012x64.cmd
View
4 cmake/Win.cmake
@@ -15,7 +15,9 @@
# Find ATL stuff
if (NOT VC_DIR)
- if (MSVC10)
+ if (MSVC11)
+ GET_FILENAME_COMPONENT(VS_DIR "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir]" REALPATH CACHE)
+ elseif (MSVC10)
GET_FILENAME_COMPONENT(VS_DIR "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;ProductDir]" REALPATH CACHE)
elseif (MSVC90)
GET_FILENAME_COMPONENT(VS_DIR "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;ProductDir]" REALPATH CACHE)
View
7 prep2012.cmd
@@ -0,0 +1,7 @@
+@echo off & setlocal enableextensions enabledelayedexpansion
+
+set _FB_GEN="Visual Studio 11"
+
+call "%~d0%~p0\common.cmd" %*
+if %errorlevel% == 2 exit /b 1
+call "%~d0%~p0\winprep.cmd"
View
7 prep2012x64.cmd
@@ -0,0 +1,7 @@
+@echo off & setlocal enableextensions enabledelayedexpansion
+
+set _FB_GEN="Visual Studio 11 Win64"
+
+call "%~d0%~p0\common.cmd" %*
+if %errorlevel% == 2 exit /b 1
+call "%~d0%~p0\winprep.cmd"

1 comment on commit d2d86af

@r0otsharp

hi

i want to make a custom project with prep2012.cmd command. but this command not working. when make use above command work good.
prep2012.cmd examples

my error is:

E:\FireBreath-master\firebreath-dev>prep2012.cmd
A subdirectory or file E:\FireBreath-master\firebreath-dev\build already exists.

" was unexpected at this time.
Using projects in: "E:\FireBreath-master\firebreath-dev\projects"
Generating build files in: "E:\FireBreath-master\firebreath-dev\build"
NOTE: The build files in "E:\FireBreath-master\firebreath-dev\build" should *NEV
ER
be modified directly.
When needed, make project changes in cmake files and re-run this script.
Project-specific cmake files are found in [plugin dir]\CMakeLists.txt and
[plugin dir]\Win\projectDef.cmake.
Note that parameters for cmake should be enclosed in double quotes, e.g. "-DVERB
OSE=1"
CMAKE parameters:

E:\FireBreath-master\firebreath-dev\build>cmake -G "Visual Studio 11" -DFB_PROJE
CTS_DIR="E:\FireBreath-master\firebreath-dev\projects" "E:\FireBreath-master\fi
rebreath-dev"
Async surface drawing not enabled
-- Balanced size/speed optimization
CMake Warning (dev) at cmake/common.cmake:118 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "boost_thread".
Call Stack (most recent call first):
CMakeLists.txt:92 (add_boost_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/common.cmake:118 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "boost_system".
Call Stack (most recent call first):
src/3rdParty/boost/libs/thread/CMakeLists.txt:64 (add_boost_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:103 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "ScriptingCore".
This warning is for project developers. Use -Wno-dev to suppress it.

project dir: E:/FireBreath-master/firebreath-dev/projects
CMake Warning (dev) at cmake/common.cmake:118 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "boost_date_time".
Call Stack (most recent call first):
cmake/common.cmake:97 (add_boost_library)
tests/ScriptingCoreTest/CMakeLists.txt:57 (link_boost_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/common.cmake:118 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "boost_regex".
Call Stack (most recent call first):
cmake/common.cmake:97 (add_boost_library)
tests/ScriptingCoreTest/CMakeLists.txt:58 (link_boost_library)
This warning is for project developers. Use -Wno-dev to suppress it.

No projects found in /.
CMake Error at CMakeLists.txt:170 (MESSAGE):
To build examples, run 'prep examples'

-- Configuring incomplete, errors occurred!
See also "E:/FireBreath-master/firebreath-dev/build/CMakeFiles/CMakeOutput.log".

E:\FireBreath-master\firebreath-dev>

Please sign in to comment.