Lines 206-216
if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
Link Here
|
206 |
endif() |
206 |
endif() |
207 |
endif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") |
207 |
endif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") |
208 |
|
208 |
|
209 |
if (NOT MSVC) |
|
|
210 |
set(CMAKE_CXX_FLAGS_DEBUG "-g") |
211 |
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -DQT_NO_DEBUG") |
212 |
endif (NOT MSVC) |
213 |
|
214 |
if (APPLE) |
209 |
if (APPLE) |
215 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC -stdlib=libc++ -Wno-inconsistent-missing-override") |
210 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC -stdlib=libc++ -Wno-inconsistent-missing-override") |
216 |
# This is necessary for genManual to be executed during the build phase, |
211 |
# This is necessary for genManual to be executed during the build phase, |
Lines 241-255
else (APPLE)
Link Here
|
241 |
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--large-address-aware") |
236 |
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--large-address-aware") |
242 |
endif (NOT BUILD_64) |
237 |
endif (NOT BUILD_64) |
243 |
else (MINGW) |
238 |
else (MINGW) |
244 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") |
239 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DNDEBUG -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT") |
245 |
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -Woverloaded-virtual") |
240 |
set(CMAKE_CXX_STANDARD 11) |
246 |
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DQT_NO_DEBUG_OUTPUT") |
241 |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
|
242 |
set(CMAKE_CXX_EXTENSIONS ON) |
247 |
endif (MINGW) |
243 |
endif (MINGW) |
248 |
endif (MSVC) |
244 |
endif (MSVC) |
249 |
endif(APPLE) |
245 |
endif(APPLE) |
250 |
|
246 |
|
251 |
set(CMAKE_INCLUDE_CURRENT_DIR TRUE) |
247 |
set(CMAKE_INCLUDE_CURRENT_DIR TRUE) |
252 |
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) # Call CMake with option -DCMAKE_SKIP_RPATH to not set RPATH (Debian packaging requirement) |
248 |
set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF) # Call CMake with option -DCMAKE_SKIP_RPATH to not set RPATH (Debian packaging requirement) |
253 |
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE) |
249 |
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE) |
254 |
|
250 |
|
255 |
# The MuseScore version number. |
251 |
# The MuseScore version number. |
Lines 615-621
if (NOT MINGW AND NOT MSVC AND NOT APPLE)
Link Here
|
615 |
# set library search path for runtime linker to load the same |
611 |
# set library search path for runtime linker to load the same |
616 |
# qt libraries as we used at compile time |
612 |
# qt libraries as we used at compile time |
617 |
# |
613 |
# |
618 |
SET(CMAKE_INSTALL_RPATH "${_qt5Core_install_prefix}/lib") # Ignored if CMAKE_SKIP_RPATH="TRUE" |
614 |
# SET(CMAKE_INSTALL_RPATH "${_qt5Core_install_prefix}/lib") # Ignored if CMAKE_SKIP_RPATH="TRUE" |
619 |
string(TOUPPER "mscore${MSCORE_INSTALL_SUFFIX}" MAN_MSCORE_UPPER) # Command name shown in uppercase in man pages by convention |
615 |
string(TOUPPER "mscore${MSCORE_INSTALL_SUFFIX}" MAN_MSCORE_UPPER) # Command name shown in uppercase in man pages by convention |
620 |
if (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") # Note: "-portable-anything" would match |
616 |
if (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") # Note: "-portable-anything" would match |
621 |
# Build portable AppImage as per https://github.com/probonopd/AppImageKit |
617 |
# Build portable AppImage as per https://github.com/probonopd/AppImageKit |