mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Compare commits
3 Commits
4cefc96faf
...
d947bf75f5
Author | SHA1 | Date | |
---|---|---|---|
|
d947bf75f5 | ||
|
9cbac142c2 | ||
|
db9586bc3d |
@ -93,10 +93,9 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Determine if build mode
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES "(Debug)+")
|
||||
add_compile_options(-g)
|
||||
endif()
|
||||
# Strip binary
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s -g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -g")
|
||||
|
||||
# Enable position independent code
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
@ -175,6 +175,8 @@ if(${CMAKE_BUILD_TYPE} MATCHES "(Release)+")
|
||||
else()
|
||||
target_compile_definitions(SqModule PRIVATE _DEBUG=1 SQMOD_EXCEPTLOC=1)
|
||||
endif()
|
||||
# Strip binary
|
||||
set_target_properties(SqModule PROPERTIES LINK_FLAGS_RELEASE -s)
|
||||
# Force 32-bit binaries when necessary
|
||||
if(FORCE_32BIT_BIN)
|
||||
set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
|
||||
|
13
vendor/MaxmindDB/CMakeLists.txt
vendored
13
vendor/MaxmindDB/CMakeLists.txt
vendored
@ -86,17 +86,16 @@ set(MAXMINDB_HEADERS
|
||||
)
|
||||
set_target_properties(maxminddb PROPERTIES PUBLIC_HEADER "${MAXMINDB_HEADERS}")
|
||||
|
||||
install(TARGETS maxminddb
|
||||
EXPORT maxminddb)
|
||||
#install(TARGETS maxminddb EXPORT maxminddb)
|
||||
|
||||
# This is required to work with FetchContent
|
||||
install(EXPORT maxminddb
|
||||
FILE maxminddb-config.cmake
|
||||
NAMESPACE maxminddb::
|
||||
DESTINATION lib/cmake/maxminddb)
|
||||
# install(EXPORT maxminddb
|
||||
# FILE maxminddb-config.cmake
|
||||
# NAMESPACE maxminddb::
|
||||
# DESTINATION lib/cmake/maxminddb)
|
||||
|
||||
# We always want to build mmdblookup
|
||||
add_subdirectory(bin)
|
||||
#add_subdirectory(bin)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
enable_testing()
|
||||
|
Loading…
Reference in New Issue
Block a user