1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-10-31 22:18:05 +00:00

Nouvelles règles de compilation

This commit is contained in:
Antoine Bartuccio 2018-06-10 00:05:42 +02:00
parent bc92d6decf
commit 924142e8d5
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.9)
project(LO41 C) project(LO41 C)
set(CMAKE_C_STANDARD 11) 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") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
endif() endif()