Skip to content
Snippets Groups Projects
Commit 9727414e authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Further cmake cleanup

parent a281363c
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -11,6 +11,8 @@
## We're not there yet, but once done, there is a kludge in Linking.cmake
# "if(${CMAKE_VERSION} VERSION_LESS "3.20.0")" that can also be removed
cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR)
cmake_policy(SET CMP0063 NEW)
cmake_policy(SET CMP0083 NEW)
cmake_policy(SET CMP0091 NEW)
set(ROOT_PROJECT_NAME "Alchemy" CACHE STRING
......
......@@ -167,6 +167,8 @@ endif (WINDOWS)
if (LINUX)
set(CMAKE_SKIP_BUILD_RPATH TRUE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_VISIBILITY_PRESET "hidden")
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
add_compile_definitions(
LL_LINUX=1
......@@ -182,7 +184,6 @@ if (LINUX)
add_compile_options(
$<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>:-fstack-protector>
-fvisibility=hidden
-fexceptions
-fno-math-errno
-fno-strict-aliasing
......
......@@ -5,6 +5,7 @@ include(00-Common)
include(FetchContent)
set(CMAKE_FOLDER "Third Party")
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
......
......@@ -295,7 +295,7 @@ endif()
add_dependencies(llcommon stage_third_party_libs)
if(USE_PRECOMPILED_HEADERS AND ${CMAKE_VERSION} VERSION_GREATER "3.15.0")
if(USE_PRECOMPILED_HEADERS)
target_precompile_headers(llcommon
PRIVATE
linden_common.h
......
......@@ -51,8 +51,6 @@ add_library(media_plugin_cef
${media_plugin_cef_SOURCE_FILES}
)
set_target_properties(media_plugin_cef PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
target_link_libraries(media_plugin_cef
media_plugin_base
ll::cef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment