Skip to content
Closed
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ else()
NAMES lk.a lk.lib
PATHS $ENV{LK_LIB} $ENV{LKDIR}/build $ENV{LKDIR}/build/Release)
find_library( SSC_LIB
NAMES ssc.dylib ssc.lib ssc.so
NAMES ssc.dylib ssc.lib ssc.so libssc.so

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why you need libssc.so. Historically, we have used ssc.so for all releases and libssc.so is only generated or looked for when SAMAPI_EXPORT is defined. Typical uses are pysam and HPC or pvwatts standalone builds of ssc.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the key command is --target ssc as a part of the make command. I'll close this PR and think about how to make that more obvious in the instructions.

PATHS $ENV{SSC_LIB} $ENV{SSCDIR}/build/ssc $ENV{SSCDIR}/build/ssc/Release)
target_link_libraries(${SAM_EXE} optimized ${WEX_LIB} optimized ${SSC_LIB} optimized ${LK_LIB})
endif()
Expand Down
Loading