Skip to content

Commit 2aded47

Browse files
committed
Fixed compilation on macOS
1 parent 2086530 commit 2aded47

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DS_Store
22
.vscode/
33
build/
4-
dist/
4+
dist/*
55
!.gitkeep

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(SOURCES
1111
src/writing.cpp
1212
)
1313

14-
set(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dist)
14+
set(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dist/)
1515

1616
find_library(LIBASSIMP
1717
NAMES assimp-vc143-mt assimp.5
@@ -26,6 +26,7 @@ target_link_libraries(${PROJECT_NAME} ${LIBASSIMP})
2626

2727
## Export files to dist folder
2828
set_target_properties(${PROJECT_NAME} PROPERTIES
29+
RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR}
2930
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OUTPUT_DIR}
3031
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OUTPUT_DIR}
3132
)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ etc. See [examples](examples) for little example projects.
2626
Run `yamc -h` to see help message with all arguments and their description.
2727

2828
# Building from source
29-
Following commands build yamc binary into a `dist` folder (created automatically).
29+
Following commands build yamc binary into folder [dist](dist).
3030
*Requires [CMake](https://cmake.org/) 3.23 at least and a C++17 compiler!*
3131

3232
```sh

dist/.gitkeep

Whitespace-only changes.

lib/libassimp.5.dylib

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)