Skip to content

Commit 513e68e

Browse files
committed
Update conan integration support
Removed -g option from compiler (it should'nt even defined by hand). Use -DCMAKE_BUILD_TYPE=Debug to enable it.
1 parent ce0c8ac commit 513e68e

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ project(shockolate VERSION 0.7.8)
44

55
include(FeatureSummary)
66

7-
#set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS OFF)
8-
#set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS ON)
9-
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS OFF)
10-
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
11-
127
# Added for conan generator
138
set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_MODULE_PATH})
149

@@ -18,9 +13,6 @@ set(CMAKE_C_STANDARD 99)
1813
set(CMAKE_CXX_STANDARD 11)
1914
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2015

21-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g ")
22-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -D__STDC_LIMIT_MACROS")
23-
2416
option(ENABLE_EXAMPLES "Enable example applications" OFF)
2517
add_feature_info(ENABLE_EXAMPLES ENABLE_EXAMPLES "Enable example application (can be broken!)")
2618
option(ENABLE_DEBUG_BLIT "Enable debugging blitter" OFF)
@@ -41,7 +33,7 @@ set_property(CACHE ENABLE_FLUIDSYNTH PROPERTY STRINGS "ON" "BUNDLED" "OFF")
4133
add_feature_info(ENABLE_FLUIDSYNTH ENABLE_FLUIDSYNTH "Enable FluidSynth MIDI support")
4234

4335
# HAAAAX!!
44-
add_definitions(-DSVGA_SUPPORT)
36+
add_definitions(-DSVGA_SUPPORT -D__STDC_LIMIT_MACROS)
4537

4638
if(ENABLE_DEBUG_BLIT)
4739
add_definitions(-DDEBUGGING_BLIT)
@@ -81,8 +73,7 @@ endif(ENABLE_SOUND MATCHES "ON")
8173
if(ENABLE_SOUND MATCHES "BUNDLED")
8274
find_package(sdl2_mixer REQUIRED)
8375
set(SDL2_MIXER_INCLUDE_DIRS ${sdl2_mixer_INCLUDE_DIRS})
84-
# FIXME additional dependencies ogg and opus
85-
set(SDL2_MIXER_LIBRARIES sdl2_mixer::sdl2_mixer ogg::ogg opus::opus)
76+
set(SDL2_MIXER_LIBRARIES sdl2_mixer::sdl2_mixer)
8677
add_definitions(-DUSE_SDL_MIXER=1)
8778
endif(ENABLE_SOUND MATCHES "BUNDLED")
8879

conanfile.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ glew/2.1.0@bincrafters/stable
44
sdl2/2.0.9@bincrafters/stable
55
sdl2_mixer/2.0.4@bincrafters/stable
66

7+
[options]
8+
# Disable unused dependencies
9+
10+
sdl2:jack=False
11+
sdl2:nas=False
12+
13+
sdl2_mixer:mad=False
14+
sdl2_mixer:modplug=False
15+
sdl2_mixer:mpg123=False
16+
sdl2_mixer:ogg=False
17+
sdl2_mixer:opus=False
18+
sdl2_mixer:tinymidi=False
19+
720
[generators]
821
cmake_find_package
922

0 commit comments

Comments
 (0)