File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.5)
33# set the project name
44project (openFPGALoader VERSION "0.13.1" LANGUAGES CXX)
55add_definitions (-DVERSION=\"v${PROJECT_VERSION} \")
6-
76option (ENABLE_OPTIM "Enable build with -O3 optimization level" ON )
87option (BUILD_STATIC "Whether or not to build with static libraries" OFF )
98if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
@@ -29,7 +28,8 @@ set(ISE_PATH "/opt/Xilinx/14.7" CACHE STRING "ise root directory (default: /opt/
2928set (CMAKE_CXX_STANDARD 11)
3029set (CMAKE_CXX_STANDARD_REQUIRED True )
3130set (CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wextra ${CMAKE_CXX_FLAGS_DEBUG} " )
32- if (ENABLE_OPTIM)
31+
32+ if (ENABLE_OPTIM AND NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" ))
3333 set (CMAKE_CXX_FLAGS "-O3 ${CMAKE_CXX_FLAGS} " )
3434endif ()
3535
You can’t perform that action at this time.
0 commit comments