You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by gr...@apache.org on 2010/10/27 09:30:18 UTC

svn commit: r1027844 - /incubator/etch/trunk/examples/helloworld/CMakeLists.txt

Author: grandyho
Date: Wed Oct 27 07:30:18 2010
New Revision: 1027844

URL: http://svn.apache.org/viewvc?rev=1027844&view=rev
Log:
ETCH-83
Helloworld Example build script now uses -m32 on Linux

Modified:
    incubator/etch/trunk/examples/helloworld/CMakeLists.txt

Modified: incubator/etch/trunk/examples/helloworld/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/examples/helloworld/CMakeLists.txt?rev=1027844&r1=1027843&r2=1027844&view=diff
==============================================================================
--- incubator/etch/trunk/examples/helloworld/CMakeLists.txt (original)
+++ incubator/etch/trunk/examples/helloworld/CMakeLists.txt Wed Oct 27 07:30:18 2010
@@ -105,9 +105,15 @@ add_executable(etch-c-helloworld-client
 target_link_libraries(etch-c-helloworld-server "${APR_LIBRARY}")
 target_link_libraries(etch-c-helloworld-server "${APR-ICONV_LIBRARY}")
 target_link_libraries(etch-c-helloworld-server "${ETCH_LIBRARY}")
+IF (UNIX)
+set_target_properties(etch-c-helloworld-server PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
+ENDIF (UNIX)
 set_target_properties(etch-c-helloworld-server PROPERTIES OUTPUT_NAME "helloworld-server")
 
 target_link_libraries(etch-c-helloworld-client "${APR_LIBRARY}")
 target_link_libraries(etch-c-helloworld-client "${APR-ICONV_LIBRARY}")
 target_link_libraries(etch-c-helloworld-client "${ETCH_LIBRARY}")
+IF (UNIX)
+set_target_properties(etch-c-helloworld-client PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
+ENDIF (UNIX)
 set_target_properties(etch-c-helloworld-client PROPERTIES OUTPUT_NAME "helloworld-client")