Skip to content

Commit

Permalink
Add definitions for Gentoo to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Dec 2, 2023
1 parent dc8ddd6 commit 4e2413c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion SamTFE/Sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME MATCHES "GNU")
set(LINUX TRUE)
message(STATUS "Set GNU Linux TRUE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-unused-function")
set(RPATH_SETTINGS "-rpath,$ORIGIN")
if(CMAKE_OS_NAME STREQUAL "Gentoo" AND USE_SYSTEM_INSTALL)
set(RPATH_SETTINGS "-rpath=/var/tmp/portage")
message(STATUS "Build for Gentoo with '-rpath=/var/tmp/portage'")
else()
set(RPATH_SETTINGS "-rpath,$ORIGIN")
endif()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable -Wno-uninitialized -Wno-unused-function")
Expand Down
7 changes: 6 additions & 1 deletion SamTSE/Sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME MATCHES "GNU")
set(LINUX TRUE)
message(STATUS "Set GNU Linux TRUE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-unused-function")
set(RPATH_SETTINGS "-rpath,$ORIGIN")
if(CMAKE_OS_NAME STREQUAL "Gentoo" AND USE_SYSTEM_INSTALL)
set(RPATH_SETTINGS "-rpath=/var/tmp/portage")
message(STATUS "Build for Gentoo with '-rpath=/var/tmp/portage'")
else()
set(RPATH_SETTINGS "-rpath,$ORIGIN")
endif()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable -Wno-uninitialized -Wno-unused-function")
Expand Down

0 comments on commit 4e2413c

Please sign in to comment.