Skip to content

Commit 01ca5de

Browse files
committed
cpp: Do not add resource file in static builds
Signed-off-by: Stefan Tauner <stefan.tauner@artech.at>
1 parent 9149259 commit 01ca5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ set(${PROJECT_NAME}_source_files
3232
exceptions/Exception.cpp
3333
exceptions/LockedExternalAccessException.cpp
3434
exceptions/NotEnoughMemoryException.cpp
35-
FastCdr.rc
35+
$<$<STREQUAL:$<TARGET_PROPERTY:${PROJECT_NAME},TYPE>,SHARED_LIBRARY>:FastCdr.rc>
3636
)
3737

3838
configure_file(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/config.h.in

0 commit comments

Comments
 (0)