Small bugfix of the main cmakelist, to properly handle PROC_TARGET_NUMBER=2
This commit is contained in:
@@ -34,8 +34,10 @@ set (RTENGINE_CXX_FLAGS "-ffast-math -funroll-loops" CACHE STRING "Special compi
|
||||
include (ProcessorTargets.cmake)
|
||||
set (PROC_LABEL "undefined" CACHE STRING "Target processor label, unused if PROC_TARGET_NUMBER = 0 or 2")
|
||||
set (PROC_FLAGS "" CACHE STRING "Target processor related build/link flags")
|
||||
if ((NOT(PROC_TARGET_NUMBER NOT EQUAL 0)) AND (NOT(PROC_TARGET_NUMBER EQUAL 2)))
|
||||
if ((NOT(PROC_TARGET_NUMBER EQUAL 0)) AND (NOT(PROC_TARGET_NUMBER EQUAL 2)))
|
||||
set (PROC_LABEL ${PROC_TARGET_${PROC_TARGET_NUMBER}_LABEL})
|
||||
endif ()
|
||||
if (NOT(PROC_TARGET_NUMBER EQUAL 0))
|
||||
set (PROC_FLAGS ${PROC_TARGET_${PROC_TARGET_NUMBER}_FLAGS})
|
||||
endif ()
|
||||
|
||||
|
Reference in New Issue
Block a user