omg
This commit is contained in:
parent
3650add73a
commit
4e0d7598e1
@ -275,8 +275,6 @@ if(STAR_COMPILER_GNU)
|
|||||||
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Ofast")
|
||||||
|
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath,$ORIGIN")
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,$ORIGIN")
|
|
||||||
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||||
|
|
||||||
elseif(STAR_COMPILER_CLANG)
|
elseif(STAR_COMPILER_CLANG)
|
||||||
@ -285,15 +283,15 @@ elseif(STAR_COMPILER_CLANG)
|
|||||||
|
|
||||||
if(STAR_SYSTEM_MACOS)
|
if(STAR_SYSTEM_MACOS)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-export_dynamic,-rpath,$ORIGIN")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-export_dynamic")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-export_dynamic,-rpath,$ORIGIN")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-export_dynamic")
|
||||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++17")
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++17")
|
||||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||||
elseif()
|
elseif()
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -D_REENTRANT")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -D_REENTRANT")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -D_REENTRANT")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -D_REENTRANT")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export_dynamic,-rpath,$ORIGIN")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export_dynamic")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export_dynamic,-rpath,$ORIGIN")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export_dynamic")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-g")
|
set(CMAKE_C_FLAGS_DEBUG "-g")
|
||||||
|
@ -33,4 +33,8 @@ IF(STAR_PRECOMPILED_HEADERS)
|
|||||||
TARGET_PRECOMPILE_HEADERS (starbound REUSE_FROM star_core)
|
TARGET_PRECOMPILE_HEADERS (starbound REUSE_FROM star_core)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
IF(UNIX)
|
||||||
|
set_target_properties (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'$ORIGIN'")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES (starbound ${STAR_EXT_LIBS} ${STAR_EXT_GUI_LIBS})
|
TARGET_LINK_LIBRARIES (starbound ${STAR_EXT_LIBS} ${STAR_EXT_GUI_LIBS})
|
Loading…
Reference in New Issue
Block a user