@@ -5,6 +5,13 @@ include(SupportCcache)
5
5
6
6
project ("VTR" )
7
7
8
+ #
9
+ # VTR Build Options
10
+ #
11
+ set (VTR_COMPILE_OPTIONS "none" CACHE STRING "Specify whether vpr uses strict compiling options, e.g. -Werror" )
12
+ set (CACHE VTR_COMPILE_OPTIONS PROPERTY STRING strict none )
13
+
14
+
8
15
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
9
16
message ("CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR} " )
10
17
message ("CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR} " )
@@ -196,7 +203,7 @@ endforeach()
196
203
197
204
#Suppress IPO link warnings
198
205
set (IPO_LINK_WARN_SUPRESS_FLAGS " " )
199
- set (IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
206
+ set (IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
200
207
"-Wno-null-dereference"
201
208
)
202
209
foreach (flag ${IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK} )
@@ -301,9 +308,9 @@ enable_testing()
301
308
set (READLINE_FOUND FALSE )
302
309
303
310
304
- # set VPR_USE_EZGL in the root of VTR to decide whether to add
305
- # subdirectory of graphics library, which prevents users
306
- # without gtk/x11 libraries installed to build. VPR_USE_EZGL is
311
+ # set VPR_USE_EZGL in the root of VTR to decide whether to add
312
+ # subdirectory of graphics library, which prevents users
313
+ # without gtk/x11 libraries installed to build. VPR_USE_EZGL is
307
314
# being used in both the vpr CMakeLists and libs/EXTERNAL CMakeLists.
308
315
#
309
316
# check if GTK and X11 are installed and turn on/off graphics
0 commit comments