Skip to content

Commit dfe45d2

Browse files
committed
Further attempting to suppress build warnings for yosys-slang
1 parent 42c7d0e commit dfe45d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ if (${WITH_PARMYS})
9999
WORKING_DIRECTORY ${SLANG_SRC_DIR}
100100
)
101101
set(SLANG_FE "${SLANG_SRC_DIR}/src/slang_frontend.cc")
102-
CHECK_CXX_COMPILER_FLAG("-w" CXX_COMPILER_SUPPORTS_-w)
103-
if (CXX_COMPILER_SUPPORTS_-w)
104-
add_compile_options("-w")
105-
endif ()
106102
ExternalProject_Add(
107103
yosys-slang
108104
SOURCE_DIR ${SLANG_SRC_DIR}
@@ -119,8 +115,7 @@ if (${WITH_PARMYS})
119115
BUILD_COMMAND
120116
${CMAKE_COMMAND} -E env
121117
YOSYS_PREFIX=${CMAKE_BINARY_DIR}/bin/
122-
CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release"
123-
CMAKE_CXX_FLAGS="-w"
118+
CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-w"
124119
${MAKE_PROGRAM} -C ${SLANG_SRC_DIR} install
125120

126121
INSTALL_COMMAND ""

0 commit comments

Comments
 (0)