Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决打开文件时可能造成的野指针问题 #27

Merged
merged 33 commits into from
Jan 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
837cd65
增加macOS支持cmake编译
DaChengTechnology Jan 13, 2022
ac1aa98
Merge branch 'main' of https://github.com/scarsty/node-editor into sc…
DaChengTechnology Jan 13, 2022
94bea9b
修复Cannot create __weak reference
DaChengTechnology Jan 13, 2022
d5d78ec
a
DaChengTechnology Jan 13, 2022
dc72952
Merge branch 'main' into main
DaChengTechnology Jan 13, 2022
5a317e1
add MRC
DaChengTechnology Jan 13, 2022
820082c
Merge branch 'main' of https://github.com/scarsty/node-editor into sc…
DaChengTechnology Jan 13, 2022
3b02201
fix yaml
DaChengTechnology Jan 13, 2022
09ffe10
可以生成app 但是 会报空指针
DaChengTechnology Jan 19, 2022
da7a303
Merge remote-tracking branch 'upstream/main'
DaChengTechnology Jan 19, 2022
fde185d
macOS 运行成功
DaChengTechnology Jan 20, 2022
56fbbf8
改名
DaChengTechnology Jan 20, 2022
493d57d
nn
DaChengTechnology Jan 20, 2022
ee6d266
Merge branch 'main' of https://github.com/DaChengTechnology/node-editor
DaChengTechnology Jan 20, 2022
1cdd9cd
修改名字
DaChengTechnology Jan 20, 2022
cb66d4d
Merge branch 'main' of https://github.com/scarsty/nn-editor into scar…
DaChengTechnology Jan 20, 2022
d16013e
1
DaChengTechnology Jan 20, 2022
2109d10
修改cmake
DaChengTechnology Jan 20, 2022
355bf5c
fix 25ad188654dd93c1e6cb562999874d5f83da57e3
DaChengTechnology Jan 20, 2022
fe81310
Merge branch 'main' into main
DaChengTechnology Jan 20, 2022
401f3e2
修复 info位置
DaChengTechnology Jan 20, 2022
b2f4a3b
修复info
DaChengTechnology Jan 20, 2022
962cdf6
Merge branch 'main' of https://github.com/DaChengTechnology/node-editor
DaChengTechnology Jan 20, 2022
825aa51
Merge branch 'main' into main
DaChengTechnology Jan 20, 2022
52d2bbc
Merge branch 'scarsty:main' into main
DaChengTechnology Jan 21, 2022
e60ea8a
修复编译
DaChengTechnology Jan 21, 2022
986ca84
fix install
DaChengTechnology Jan 21, 2022
ac83292
fix resouce
DaChengTechnology Jan 21, 2022
0e62fe9
review main
DaChengTechnology Jan 21, 2022
a69ce7a
fix arc
DaChengTechnology Jan 21, 2022
c0fc3f0
修复node内存
DaChengTechnology Jan 24, 2022
8c549be
Merge branch 'main' of https://github.com/scarsty/nn-editor into scar…
DaChengTechnology Jan 24, 2022
9d2a209
修改node
DaChengTechnology Jan 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
修复Cannot create __weak reference
  • Loading branch information
DaChengTechnology committed Jan 13, 2022
commit 94bea9b43f7b0099e389a05e6807a647eab26c11
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
cmake_minimum_required(VERSION 3.13)

# disable inplace builds to prevent source tree corruption.
if (" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}")
message (FATAL_ERROR "Building inplace are not allowed. You should create a separate directory.")
endif ()
# if (" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}")
# message (FATAL_ERROR "Building inplace are not allowed. You should create a separate directory.")
# endif ()

# set cmake_install_prefix path
if (NOT DEFINED CMAKE_INSTALL_PREFIX)
Expand All @@ -24,9 +24,8 @@ set_target_properties (${PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS NDEBUG)
set_target_properties (${PROJECT_NAME} PROPERTIES CXX_STANDARD 17)

# collect the source files
# aux_source_directory(${CMAKE_SOURCE_DIR}/node-editor NODE_EDITOR_SRCS)
if(APPLE)
add_compile_options(-x objective-c++)
add_compile_options(-x objective-c++ -fobjc-weak)
set(CMAKE_EXE_LINKER_FLAGS "-framework Metal -framework QuartzCore")
set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_FRAMEWORK_IDENTIFIER org.cmake.node-editor)
list (APPEND NODE_EDITOR_SRCS node-editor/color_node_editor.cpp)
Expand Down