Skip to content

Commit

Permalink
cmake: force orocos_target if not empty
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Smits <[email protected]>
  • Loading branch information
Ruben Smits authored and Peter Soetens committed May 16, 2011
1 parent e73bec4 commit 8d8d767
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions orocos-rtt-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
########################################################################################################################

# Set the default target operating system, if unspecified
if(NOT DEFINED OROCOS_TARGET)
set(DOC_STRING "The Operating System target. One of [gnulinux lxrt macosx win32 xenomai]")
if(NOT $ENV{OROCOS_TARGET} STREQUAL "")
set(OROCOS_TARGET $ENV{OROCOS_TARGET} CACHE STRING "${DOC_STRING}")
message( "Detected OROCOS_TARGET environment variable. Using: ${OROCOS_TARGET}")
else()
set(DOC_STRING "The Operating System target. One of [gnulinux lxrt macosx win32 xenomai]")
if(NOT $ENV{OROCOS_TARGET} STREQUAL "")
set(OROCOS_TARGET $ENV{OROCOS_TARGET} CACHE STRING "${DOC_STRING}" FORCE)
message( "Detected OROCOS_TARGET environment variable. Using: ${OROCOS_TARGET}")
else()
if(NOT DEFINED OROCOS_TARGET)
if(MSVC)
set(OROCOS_TARGET win32 CACHE STRING "${DOC_STRING}")
elseif(APPLE AND ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down

0 comments on commit 8d8d767

Please sign in to comment.