changeset 56:5359c8357d19

Updating CMakeLists.txt file for CMake + WinAVR on Windows - Use Makefiles from Cygwin
author Jacob Alexander <triplehaata@gmail.com>
date Sat, 24 Nov 2012 11:41:41 -0800
parents 4da33d34ec64
children a70deaf77afa
files CMakeLists.txt
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Mon Nov 19 00:55:30 2012 -0800
+++ b/CMakeLists.txt	Sat Nov 24 11:41:41 2012 -0800
@@ -7,6 +7,11 @@
 #
 ###
 
+#| Windows / Cygwin Compatibility options
+set( CMAKE_LEGACY_CYGWIN_WIN32 0 )
+set( CMAKE_USE_RELATIVE_PATHS  1 )
+
+
 #| Set the Compilers (must be set first)
 include( CMakeForceCompiler )
 cmake_force_c_compiler  ( avr-gcc AVRCCompiler )
@@ -147,6 +152,7 @@
 #| .ELF Properties
 set_target_properties( ${TARGET_ELF} PROPERTIES
 	LINK_FLAGS ${LINKER_FLAGS}
+	SUFFIX ""                               # XXX Force Windows to keep the .exe off
 )
 
 
@@ -207,6 +213,6 @@
 
 #| TODO Windows
 if( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
-	message( STATUS "Load Script is on my TODO List for Windows..." )
+	configure_file( LoadFile/bash load )
 endif( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )