Skip to content

Commit a2d8d43

Browse files
acomodikmurray
authored andcommitted
cmake: set VTR_COMPILE_OPTIONS once in top CMakeLists.txt
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 3b4e0ab commit a2d8d43

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

CMakeLists.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ include(SupportCcache)
55

66
project("VTR")
77

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+
815
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
916
message("CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}")
1017
message("CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
@@ -196,7 +203,7 @@ endforeach()
196203

197204
#Suppress IPO link warnings
198205
set(IPO_LINK_WARN_SUPRESS_FLAGS " ")
199-
set(IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
206+
set(IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
200207
"-Wno-null-dereference"
201208
)
202209
foreach(flag ${IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK})
@@ -301,9 +308,9 @@ enable_testing()
301308
set(READLINE_FOUND FALSE)
302309

303310

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
307314
# being used in both the vpr CMakeLists and libs/EXTERNAL CMakeLists.
308315
#
309316
# check if GTK and X11 are installed and turn on/off graphics

ODIN_II/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ cmake_minimum_required(VERSION 3.9)
22

33
project("ODIN_II")
44

5-
#
6-
# ODIN_II Build Options
7-
#
8-
set(VTR_COMPILE_OPTIONS "none" CACHE STRING "Specify whether ODIN_II uses strict compiling options, e.g. -Werror")
9-
set(CACHE VTR_COMPILE_OPTIONS PROPERTY STRING strict none)
10-
115
if(ODIN_DEBUG)
126

137
message("*** Compiling with Odin debug flags")

vpr/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ cmake_minimum_required(VERSION 3.9)
22

33
project("vpr")
44

5-
#
6-
# VPR Build Options
7-
#
8-
set(VTR_COMPILE_OPTIONS "none" CACHE STRING "Specify whether vpr uses strict compiling options, e.g. -Werror")
9-
set(CACHE VTR_COMPILE_OPTIONS PROPERTY STRING strict none)
10-
115
set(VPR_EXECUTION_ENGINE "auto" CACHE STRING "Specify the framework for (potential) parallel execution")
126
set_property(CACHE VPR_EXECUTION_ENGINE PROPERTY STRINGS auto serial tbb)
137

0 commit comments

Comments
 (0)