mirror of https://github.com/JAJames/jessilib.git
Jessica James
6 years ago
4 changed files with 21 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||||
|
# Include any compiler-specifc settings |
||||
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}") |
||||
|
include("${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}/CMakeLists.txt") |
||||
|
else() |
||||
|
message(STATUS "No compiler-specific settings set; CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}") |
||||
|
endif() |
@ -0,0 +1,13 @@ |
|||||
|
# GCC-specific compiler settings |
||||
|
|
||||
|
# Enable all/extra warnings |
||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") |
||||
|
|
||||
|
# Treat all warnings as errors |
||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") |
||||
|
|
||||
|
# Enable address sanitizer on debug |
||||
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
||||
|
|
||||
|
# Enable std::filesystem |
||||
|
set(JESSILIB_ADDITOINAL_LIBS "stdc++fs") |
Loading…
Reference in new issue