From 924142e8d5fff49bb25e6c29b397c6817c1608ad Mon Sep 17 00:00:00 2001 From: klmp200 Date: Sun, 10 Jun 2018 00:05:42 +0200 Subject: [PATCH] =?UTF-8?q?Nouvelles=20r=C3=A8gles=20de=20compilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f7e489..ebea511 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.9) project(LO41 C) set(CMAKE_C_STANDARD 11) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wshadow") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wshadow -fpic") -if("${CMAKE_SYSTEM}" MATCHES "Linux") +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") endif()