mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
Only enable -fno-omit-frame-pointer for static builds
This commit is contained in:
parent
bbb33af4ca
commit
1ae81075f4
@ -93,9 +93,6 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|||||||
add_compile_options(-fcolor-diagnostics)
|
add_compile_options(-fcolor-diagnostics)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Strangely this is needed when linking statically against FLAC++
|
|
||||||
add_compile_options(-fno-omit-frame-pointer)
|
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
add_compile_options(/Zc:__cplusplus /utf-8 /wd4267 /wd4244 /wd5219)
|
add_compile_options(/Zc:__cplusplus /utf-8 /wd4267 /wd4244 /wd5219)
|
||||||
# Apply /MT or /MTd (multithread, static version of the run-time library)
|
# Apply /MT or /MTd (multithread, static version of the run-time library)
|
||||||
@ -121,6 +118,9 @@ include(${CMAKE_SOURCE_DIR}/cmake/version.cmake)
|
|||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
|
||||||
|
|
||||||
if(STATIC_BUILD_DO_NOT_USE)
|
if(STATIC_BUILD_DO_NOT_USE)
|
||||||
|
# Strangely this is needed when linking statically against FLAC++
|
||||||
|
add_compile_options(-fno-omit-frame-pointer)
|
||||||
|
|
||||||
if(STATIC_BUILD_EXTRA_PREFIX)
|
if(STATIC_BUILD_EXTRA_PREFIX)
|
||||||
include_directories(BEFORE ${STATIC_BUILD_EXTRA_PREFIX}/include)
|
include_directories(BEFORE ${STATIC_BUILD_EXTRA_PREFIX}/include)
|
||||||
set(CMAKE_PREFIX_PATH ${STATIC_BUILD_EXTRA_PREFIX})
|
set(CMAKE_PREFIX_PATH ${STATIC_BUILD_EXTRA_PREFIX})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user