1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-10 10:20:04 +00:00

Merge pull request #554 from litghost/default_to_release

Default to Release, but allow other modes (e.g. Debug, RelWithDebInfo).
This commit is contained in:
David Shah
2021-01-28 07:31:27 +00:00
committed by GitHub

View File

@@ -193,7 +193,9 @@ aux_source_directory(3rdparty/json11 EXT_JSON11_FILES)
aux_source_directory(frontend/ FRONTEND_FILES)
set(COMMON_FILES ${COMMON_SRC_FILES} ${EXT_JSON11_FILES} ${JSON_PARSER_FILES} ${FRONTEND_FILES})
set(CMAKE_BUILD_TYPE Release)
if( NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE Release)
endif()
if(CMAKE_CROSSCOMPILING)
set(BBA_IMPORT "IMPORTFILE-NOTFOUND" CACHE FILEPATH