Skip to content

Commit 5f3b5bc

Browse files
authored
install to /usr/local/share, not /usrl/local/include (#172)
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 2a712cf commit 5f3b5bc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ if ( APPLE OR UNIX )
117117
install (
118118
DIRECTORY
119119
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/data
120-
DESTINATION include/rawtoaces
120+
DESTINATION share/rawtoaces
121121
)
122122

123123
install (
124124
FILES
125125
${PROJECT_BINARY_DIR}/_deps/rawtoaces_data-src/LICENSE
126-
DESTINATION include/rawtoaces/data
126+
DESTINATION share/rawtoaces/data
127127
)
128128
endif()
129129

src/rawtoaces_util/acesrender.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ std::vector<std::string> database_paths()
108108
const std::string separator = ";";
109109
const std::string default_path = ".";
110110
#else
111-
char separator = ':';
112-
const std::string default_path = "/usr/local/share/rawtoaces/data";
111+
char separator = ':';
112+
const std::string default_path =
113+
"/usr/local/share/rawtoaces/data"
114+
":/usr/local/include/rawtoaces/data"; // Old path for back compatibility
113115
#endif
114116

115117
std::string path;

0 commit comments

Comments
 (0)