Browse files

Fixed install path problem when using cross compiling tool chain.

  • Loading branch information...
1 parent 4f181df commit 10fe90e85352c1eaeb0e66c6420865f11b5ecf58 @davidmoreno committed Jul 7, 2011
View
2 examples/cairo/CMakeLists.txt
@@ -3,4 +3,4 @@ include_directories (${CMAKE_SOURCE_DIR}/src/)
add_executable(cairo_example cairo.c)
target_link_libraries(cairo_example onion onion_extras cairo m)
-install(TARGETS cairo_example DESTINATION bin)
+install(TARGETS cairo_example DESTINATION ${BINDIR})
View
2 examples/fileserver/CMakeLists.txt
@@ -3,4 +3,4 @@ include_directories (${CMAKE_SOURCE_DIR}/src/)
add_executable(fileserver fileserver.c)
target_link_libraries(fileserver onion_handlers onion_static)
-install(TARGETS fileserver DESTINATION bin)
+install(TARGETS fileserver DESTINATION ${BINDIR})
View
2 examples/fileserver_otemplate/CMakeLists.txt
@@ -41,5 +41,5 @@ add_custom_target(
add_executable(fileserver_otemplate fileserver.c fileserver_html.c)
target_link_libraries(fileserver_otemplate onion)
-install(TARGETS fileserver_otemplate DESTINATION bin)
+install(TARGETS fileserver_otemplate DESTINATION ${BINDIR})
View
2 examples/interactive/CMakeLists.txt
@@ -5,6 +5,6 @@ add_executable(interactive interactive.c)
target_link_libraries(interactive onion_static)
if ( ${ARM} MATCHES "yes" )
-install(TARGETS interactive DESTINATION bin)
+install(TARGETS interactive DESTINATION ${BINDIR})
endif ( ${ARM} MATCHES "yes" )
View
2 examples/oterm/CMakeLists.txt
@@ -19,4 +19,4 @@ add_executable(oterm oterm.c oterm_handler.c oterm_data.c)
# util is for pty support.. who choose so generic name?
target_link_libraries(oterm onion_handlers onion_static util)
-install(TARGETS oterm DESTINATION bin)
+install(TARGETS oterm DESTINATION ${BINDIR})
View
2 examples/otop/CMakeLists.txt
@@ -9,4 +9,4 @@ add_custom_command(
add_executable(otop otop.c otop_data.c)
target_link_libraries(otop onion_handlers onion )
-install(TARGETS otop DESTINATION bin)
+install(TARGETS otop DESTINATION ${BINDIR})

0 comments on commit 10fe90e

Please sign in to comment.