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,13 +69,12 @@ endif()
69 69
70 # Build options 70 # Build options
71 option(BR_EMBEDDED "Limit software dependencies") 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 endif() 74 endif()
75 75
76 # Find Qt 76 # Find Qt
77 set(QT_DEPENDENCIES Concurrent Core) 77 set(QT_DEPENDENCIES Concurrent Core)
78 -option(BR_EMBEDDED "Limit software dependencies")  
79 if(NOT BR_EMBEDDED) 78 if(NOT BR_EMBEDDED)
80 set(QT_DEPENDENCIES ${QT_DEPENDENCIES} Gui Network Sql Widgets Xml) 79 set(QT_DEPENDENCIES ${QT_DEPENDENCIES} Gui Network Sql Widgets Xml)
81 endif() 80 endif()