Commit 301e1fb1a62cc4df38a77107f4a9debec44deadb

Authored by Josh Klontz
1 parent f6615cec

fixed BR_EMBEDDED option defined twice

Showing 1 changed file with 2 additions and 3 deletions
CMakeLists.txt
... ... @@ -69,13 +69,12 @@ endif()
69 69  
70 70 # Build options
71 71 option(BR_EMBEDDED "Limit software dependencies")
72   -if(${BR_EMBEDDED})
73   - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBR_EMBEDDED")
  72 +if(BR_EMBEDDED)
  73 + add_definitions(-DBR_EMBEDDED)
74 74 endif()
75 75  
76 76 # Find Qt
77 77 set(QT_DEPENDENCIES Concurrent Core)
78   -option(BR_EMBEDDED "Limit software dependencies")
79 78 if(NOT BR_EMBEDDED)
80 79 set(QT_DEPENDENCIES ${QT_DEPENDENCIES} Gui Network Sql Widgets Xml)
81 80 endif()
... ...