mirror of https://github.com/libAthena/athena.git
NX build fixes
This commit is contained in:
parent
488acc8675
commit
44e4e5a376
|
@ -130,7 +130,7 @@ add_library(athena-wiisave EXCLUDE_FROM_ALL
|
|||
include/md5.h
|
||||
include/sha1.h
|
||||
)
|
||||
if(NOT MSVC AND NOT GEKKO)
|
||||
if(NOT MSVC AND NOT GEKKO AND NOT NX)
|
||||
set_source_files_properties(src/aes.cpp PROPERTIES COMPILE_FLAGS -maes)
|
||||
endif()
|
||||
|
||||
|
@ -243,7 +243,7 @@ install(EXPORT AthenaTargets DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT athena)
|
|||
# atdna import #
|
||||
################
|
||||
|
||||
if(NOT GEKKO)
|
||||
if(NOT GEKKO AND NOT NX)
|
||||
add_subdirectory(atdna)
|
||||
# Test target
|
||||
atdna(atdna_test.cpp atdna/test.hpp)
|
||||
|
|
|
@ -181,7 +181,7 @@ endif()
|
|||
#######################
|
||||
|
||||
# Super handy macro for adding atdna target
|
||||
macro(atdna out)
|
||||
function(atdna out)
|
||||
# Ninja wants invocations in root binary dir for DEPFILE application
|
||||
file(RELATIVE_PATH out_rel ${CMAKE_BINARY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/${out}")
|
||||
|
||||
|
@ -255,6 +255,6 @@ macro(atdna out)
|
|||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Generating DNA ${out_rel}")
|
||||
endif()
|
||||
endmacro()
|
||||
endfunction()
|
||||
|
||||
endif()
|
||||
|
|
|
@ -9,7 +9,7 @@ if(NOT TARGET atdna AND NOT atdna_BINARY_DIR)
|
|||
endif()
|
||||
|
||||
# Super handy macro for adding atdna target
|
||||
macro(atdna out)
|
||||
function(atdna out)
|
||||
# Ninja wants invocations in root binary dir for DEPFILE application
|
||||
file(RELATIVE_PATH out_rel ${CMAKE_BINARY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/${out}")
|
||||
|
||||
|
@ -80,5 +80,5 @@ macro(atdna out)
|
|||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Generating DNA ${out_rel}")
|
||||
endif()
|
||||
endmacro()
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in New Issue