LoginSignup
1
0

More than 3 years have passed since last update.

CMakeを使ったビルドが"*** missing separator. Stop."で失敗する

Last updated at Posted at 2019-06-09

set_target_propertiesの値に改行等を含む文字列が渡されると、次のようなメッセージと共に失敗する不正なmakefileが生成される事がある。

src/CMakeFiles/awesometarget.dir/build.make:91: : *** missing separator.  Stop.

改行を変数中から取り除く方法にはSTRIPstring operationで取り除ける:
https://cmake.org/cmake/help/latest/command/string.html#strip

execute_processから文字列を得ている場合はOUTPUT_STRIP_TRAILING_WHITESPACEで取り除ける:
https://cmake.org/cmake/help/latest/command/execute_process.html

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0