Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing out of source build problems

  • Loading branch information...
commit faab125d0f938c0e8ada73e0c9e56c1bf327868a 1 parent 9e7abfd
@r4d2 r4d2 authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +4 −4 stdlib-c/CMakeLists.txt
View
1  .gitignore
@@ -89,5 +89,6 @@ docs/html/*
###################
*.o
*.oa
+*.os
*.dcpu16
*.dobj16
View
8 stdlib-c/CMakeLists.txt
@@ -73,9 +73,9 @@ function(define_dcpu_tool tool toolargs verb files runasm outvar)
DEPENDS ${tool} dtasm "${CMAKE_CURRENT_SOURCE_DIR}/${i}" "${CMAKE_CURRENT_SOURCE_DIR}/${fpth}/${fbse}.oa"
COMMENT "Assembling ${fpth}/${fbse}.oa with DCPU-Toolchain...")
if("${tout}" STREQUAL "")
- set(tout "${fpth}/${fbse}.o")
+ set(tout "${CMAKE_CURRENT_SOURCE_DIR}/${fpth}/${fbse}.o")
else("${tout}" STREQUAL "")
- list(APPEND tout "${fpth}/${fbse}.o")
+ list(APPEND tout "${CMAKE_CURRENT_SOURCE_DIR}/${fpth}/${fbse}.o")
endif("${tout}" STREQUAL "")
set(${outvar} "${${outvar}} ${tout}" PARENT_SCOPE)
else(${runasm} STREQUAL "true")
@@ -92,9 +92,9 @@ function(define_dcpu_tool tool toolargs verb files runasm outvar)
DEPENDS ${tool} "${CMAKE_CURRENT_SOURCE_DIR}/${i}"
COMMENT "${verb} ${fbse}${fext} with DCPU-Toolchain...")
if("${tout}" STREQUAL "")
- set(tout "${fpth}/${fbse}.o")
+ set(tout "${CMAKE_CURRENT_SOURCE_DIR}/${fpth}/${fbse}.o")
else("${tout}" STREQUAL "")
- list(APPEND tout "${fpth}/${fbse}.o")
+ list(APPEND tout "${CMAKE_CURRENT_SOURCE_DIR}/${fpth}/${fbse}.o")
endif("${tout}" STREQUAL "")
set(${outvar} "${${outvar}} ${tout}" PARENT_SCOPE)
endif(${runasm} STREQUAL "true")
Please sign in to comment.
Something went wrong with that request. Please try again.