Skip to content

Commit

Permalink
fix formatting and clang build
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Dukhovnikov <[email protected]>
  • Loading branch information
antond-weta committed Feb 9, 2025
1 parent 6e18fc7 commit 4f33dc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/rawtoaces/define.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include <vector>
#include <algorithm>
#include <filesystem>
#include <limits>

#ifndef WIN32
# include <sys/stat.h>
Expand Down
2 changes: 2 additions & 0 deletions src/rawtoaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ add_executable( rawtoaces
main.cpp
)

set_property(TARGET rawtoaces PROPERTY CXX_STANDARD 17)

target_include_directories( rawtoaces
PUBLIC
${AcesContainer_INCLUDE_DIRS}
Expand Down
4 changes: 2 additions & 2 deletions src/rawtoaces_idt/rta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ vector<double> Illum::cctToxy( const double &cctd ) const
if ( cctd >= 4002.15 && cctd <= 7003.77 )
xy[0] =
( 0.244063 + 99.11 / cctd +
2.9678 * 1000000 / (std::pow( cctd, 2 ))-4.6070 * 1000000000 /
2.9678 * 1000000 / (std::pow( cctd, 2 ) )-4.6070 * 1000000000 /
( std::pow( cctd, 3 ) ) );
else
xy[0] =
( 0.237040 + 247.48 / cctd +
1.9018 * 1000000 / (std::pow( cctd, 2 ))-2.0064 * 1000000000 /
1.9018 * 1000000 / (std::pow( cctd, 2 ) )-2.0064 * 1000000000 /
( std::pow( cctd, 3 ) ) );

xy[1] = -3.0 * ( std::pow( xy[0], 2 ) ) + 2.87 * xy[0] - 0.275;
Expand Down
2 changes: 2 additions & 0 deletions src/rawtoaces_util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ add_library ( ${RAWTOACESLIB} ${DO_SHARED}
acesrender.cpp
)

set_property(TARGET ${RAWTOACESLIB} PROPERTY CXX_STANDARD 17)

if ( AcesContainer_FOUND )
target_include_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_INCLUDE_DIRS} )
target_link_directories ( ${RAWTOACESLIB} PUBLIC ${AcesContainer_LIBRARY_DIRS} )
Expand Down

0 comments on commit 4f33dc5

Please sign in to comment.