Skip to content

Commit

Permalink
Use Release as default build type.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Aug 25, 2024
1 parent 870ea52 commit 9137941
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions share/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# TODO: add dependencies (c128.s and mega65.s include c64.s)

message(STATUS "CMAKE_BUILD_TYPE='${CMAKE_BUILD_TYPE}', CMAKE_GENERATOR='${CMAKE_GENERATOR}'")
if(DEFINED CMAKE_BUILD_TYPE AND CMAKE_GENERATOR EQUAL "Visual Studio 17 2022")
set(XLR8 ${CMAKE_BINARY_DIR}/src/${CMAKE_BUILD_TYPE}/xlr8${CMAKE_EXECUTABLE_SUFFIX})
if(CMAKE_GENERATOR EQUAL "Visual Studio 17 2022")
if(DEFINED CMAKE_BUILD_TYPE)
set(BIN_SUBDIRECTORY, "/${CMAKE_BUILD_TYPE}")
else()
set(BIN_SUBDIRECTORY, "/Release")
endif()
else()
set(XLR8 ${CMAKE_BINARY_DIR}/src/xlr8${CMAKE_EXECUTABLE_SUFFIX})
set(BIN_SUBDIRECTORY, "")
endif()
set(XLR8 ${CMAKE_BINARY_DIR}/src${BIN_SUBDIRECTORY}/xlr8${CMAKE_EXECUTABLE_SUFFIX})
message(STATUS "CMAKE_BUILD_TYPE='${CMAKE_BUILD_TYPE}', CMAKE_GENERATOR='${CMAKE_GENERATOR}', BIN_SUBDIRECTORY='${BIN_SUBDIRECTORY}', XLR8='${XLR8}'")

file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.s)

Expand Down

0 comments on commit 9137941

Please sign in to comment.