Skip to content

Commit

Permalink
Merge pull request #53 from gopro/link-libs-whitespace
Browse files Browse the repository at this point in the history
cmake policy CMP0004 gives error for whitespace in linker libraries
  • Loading branch information
dnewman-gpsw committed Feb 18, 2022
2 parents 8fd6bba + 77308cd commit 11574d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if (OPENMP_FOUND)
add_definitions(-DHAVE_OPENMP=1)
SET(ADDITIONAL_LIBS "${ADDITIONAL_LIBS} ${OpenMP_CXX_FLAGS}")
endif (OPENMP_FOUND)
string(STRIP ${ADDITIONAL_LIBS} ADDITIONAL_LIBS)

include_directories("Common" "Tables" "Codec" "ConvertLib" "WarpLib" "Example")
file(GLOB CODEC_SOURCES "Codec/*.c" "Codec/*.h" "Codec/*.cpp" "WarpLib/*.c" "WarpLib/*.h" )
Expand Down

1 comment on commit 11574d0

@OgreTransporter
Copy link

Choose a reason for hiding this comment

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

CMake Error at CMakeLists.txt:40 (string):
   string sub-command STRIP requires two arguments.

Please sign in to comment.