Skip to content

Commit

Permalink
Fix syntax error in the main CMakeLists.txt, and fix detection of mac…
Browse files Browse the repository at this point in the history
…OS when building QScintilla
  • Loading branch information
SunderB authored and samaaron committed Mar 17, 2020
1 parent d467af5 commit 84ceebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/gui/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set(APP_ROOT ${CMAKE_CURRENT_LIST_DIR})
set(SONIC_PI_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../..)

# Set cmake prefix path so it can find the Qt libraries
if(${BUILD_32BIT} AND DEFINED ENV{QT_INSTALL_LOCATION32})
if((${BUILD_32BIT}) AND (DEFINED ENV{QT_INSTALL_LOCATION32}))
message(STATUS "Setting up a 32 bit Qt Build")
message(STATUS "Setting prefix to user-defined Qt (32-bit) install location: $ENV{QT_INSTALL_LOCATION32}")
set(CMAKE_PREFIX_PATH $ENV{QT_INSTALL_LOCATION32})
Expand Down
2 changes: 1 addition & 1 deletion app/gui/qt/external/QScintilla-2.11.4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES Linux)
-Wno-strict-overflow
-Wno-misleading-indentation
)
elseif(MACOS)
elseif(${CMAKE_SYSTEM_NAME} MATCHES Darwin) # macOS
target_compile_options(QScintilla
PRIVATE
-Wno-absolute-value
Expand Down

0 comments on commit 84ceebd

Please sign in to comment.