Skip to content

Commit

Permalink
Update the cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pvigier committed Oct 5, 2018
1 parent eb779f3 commit 5cbd0e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(${CMAKE_CXX_PLATFORM_ID} MATCHES "MinGW")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
message("GCC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-pie -no-pie -Wl,-rpath,.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-pie -no-pie -Wl,-rpath,lib")
endif()

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

# Libraries

if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
#message("Static linking")
#set(SFML_STATIC_LIBRARIES TRUE)
#set(Boost_USE_STATIC_LIBS ON)
endif()

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules" ${CMAKE_MODULE_PATH})

find_package(SFML 2.4 REQUIRED network audio graphics window system)
Expand Down

0 comments on commit 5cbd0e3

Please sign in to comment.