mirror of https://github.com/JAJames/jessilib.git
Jessica James
5 years ago
7 changed files with 22 additions and 6 deletions
@ -1,6 +1,6 @@ |
|||||
# Include any compiler-specifc settings |
# Include any compiler-specifc settings |
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}") |
if (EXISTS "${JESSILIB_ROOT}/build/${CMAKE_CXX_COMPILER_ID}") |
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}/CMakeLists.txt") |
include("${JESSILIB_ROOT}/build/${CMAKE_CXX_COMPILER_ID}/CMakeLists.txt") |
||||
else() |
else() |
||||
message(STATUS "No compiler-specific settings set; CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}") |
message(STATUS "No compiler-specific settings set; CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}") |
||||
endif() |
endif() |
||||
|
@ -0,0 +1,13 @@ |
|||||
|
# Clang-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