changeset 306:70f64e5b5942

Fixed "make install" command on windows. http://www.dsource.org/forums/viewtopic.php?t=4931&sid=a9b3b6103c99ae05c76269fd7c6c5448
author Alexey Prokhin <alexey.prokhin@yandex.ru>
date Sat, 19 Dec 2009 18:43:32 +0300
parents 04e20937c681
children ed7018b63aa7 1e9092e20a67
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Sun Nov 08 19:02:42 2009 +0000
+++ b/CMakeLists.txt	Sat Dec 19 18:43:32 2009 +0300
@@ -123,14 +123,14 @@
 make_native_path(cd_path)
 add_custom_command(TARGET main POST_BUILD	
 	COMMAND ${CMAKE_COMMAND} ARGS -E make_directory ${CMAKE_BINARY_DIR}/build
-	COMMAND cd  ARGS ${cd_path} && ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} -DSECOND_RUN=1 ${CMAKE_SOURCE_DIR} && ${make_util}
+	COMMAND cd ARGS ${cd_path} && ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} -DSECOND_RUN=1 ${CMAKE_SOURCE_DIR} && ${make_util}
 	COMMENT ""	
 	)  
 
 ## "Make install" command.
 set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_BINARY_DIR}/build)
 add_custom_target(install
-	COMMAND cd ${CMAKE_BINARY_DIR}/build && ${make_util} install
+	COMMAND cd ARGS ${cd_path} && ${make_util} install
 	COMMENT ""
 	)  
 add_dependencies(install preinstall)