mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Added no-narrowing on linux builds
This commit is contained in:
+1
-1
@@ -24,7 +24,6 @@ if(NOT libgfxd_POPULATED)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
||||
# Source files
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
|
||||
@@ -49,6 +48,7 @@ endif()
|
||||
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
set(CMAKE_CXX_FLAGS "-Wno-narrowing")
|
||||
endif()
|
||||
|
||||
# Fetch Dependencies
|
||||
|
||||
Reference in New Issue
Block a user