Skip to content

Instantly share code, notes, and snippets.

@anaselli
Created March 18, 2015 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaselli/e39c8a1b6e9b8fa71d44 to your computer and use it in GitHub Desktop.
Save anaselli/e39c8a1b6e9b8fa71d44 to your computer and use it in GitHub Desktop.
Orion context broker build arch patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4996227..5705083 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -130,11 +130,11 @@ include_directories("/usr/include")
# Library directories
#
MESSAGE("Building for ${BUILD_ARCH}")
-if (${BUILD_ARCH} STREQUAL "x86_64")
+if ("${BUILD_ARCH}" STREQUAL "x86_64")
link_directories("/usr/lib64")
-else (NOT ${BUILD_ARCH} STREQUAL "x86_64")
+else (NOT "${BUILD_ARCH}" STREQUAL "x86_64")
link_directories("/usr/lib")
-endif (${BUILD_ARCH} STREQUAL "x86_64")
+endif ("${BUILD_ARCH}" STREQUAL "x86_64")
#
# Enabling test harness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment