Skip to content

Commit 5cbd0e3

Browse files
committed
Update the cmake
1 parent eb779f3 commit 5cbd0e3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(${CMAKE_CXX_PLATFORM_ID} MATCHES "MinGW")
2121
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
2222
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
2323
message("GCC")
24-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-pie -no-pie -Wl,-rpath,.")
24+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-pie -no-pie -Wl,-rpath,lib")
2525
endif()
2626

2727
# Files
@@ -40,6 +40,12 @@ add_executable(${EXECUTABLE_NAME} ${SRCS} ${HEADERS})
4040

4141
# Libraries
4242

43+
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
44+
#message("Static linking")
45+
#set(SFML_STATIC_LIBRARIES TRUE)
46+
#set(Boost_USE_STATIC_LIBS ON)
47+
endif()
48+
4349
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules" ${CMAKE_MODULE_PATH})
4450

4551
find_package(SFML 2.4 REQUIRED network audio graphics window system)

0 commit comments

Comments
 (0)