Add debug symbols.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cd4893936e
commit
0983658913
|
@ -41,6 +41,11 @@ foreach (_conanLib ${CONAN_LIBS})
|
|||
message(STATUS "\t ${_conanLib}")
|
||||
endforeach ()
|
||||
|
||||
if (NOT WINDOWS)
|
||||
# Include debug symbols in all linux builds
|
||||
add_compile_options(-g -gfull -g3)
|
||||
endif ()
|
||||
|
||||
# Set whether we want a static or shared library.
|
||||
set(LIBTYPE STATIC)
|
||||
if (SHARED)
|
||||
|
@ -75,16 +80,12 @@ add_library(pkmnLib ${LIBTYPE} ${CORE_SRC_FILES})
|
|||
|
||||
SET(_LINKS CreatureLib Arbutils)
|
||||
SET(_TESTLINKS pkmnLib CreatureLib Arbutils)
|
||||
if (NOT WINDOWS)
|
||||
set(_LINKS ${_LINKS} -lbfd -ldl)
|
||||
endif ()
|
||||
|
||||
|
||||
if (SCRIPT_PROVIDER STREQUAL "angelscript")
|
||||
message(STATUS "Using Angelscript as script provider.")
|
||||
ADD_DEFINITIONS(-D ANGELSCRIPT=1)
|
||||
SET(_LINKS angelscript ${_LINKS})
|
||||
SET(_TESTLINKS angelscript ${_TESTLINKS})
|
||||
SET(_LINKS ${_LINKS} angelscript)
|
||||
SET(_TESTLINKS ${_TESTLINKS} angelscript)
|
||||
endif ()
|
||||
|
||||
# If we are building for Windows we need to set some specific variables.
|
||||
|
@ -97,6 +98,9 @@ if (WINDOWS)
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-allow-multiple-definition")
|
||||
endif (WINDOWS)
|
||||
|
||||
if (NOT WINDOWS)
|
||||
set(_LINKS ${_LINKS} -ldw)
|
||||
endif ()
|
||||
|
||||
if (STATICC)
|
||||
message(STATUS "Linking C library statically")
|
||||
|
|
Loading…
Reference in New Issue