]> granicus.if.org Git - check/commit
Fix bug with CMake project variable
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 8 Jun 2019 11:54:32 +0000 (13:54 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 8 Jun 2019 11:54:32 +0000 (13:54 +0200)
commit0579c70edcf3ed9e314b7e4f960af025b1c454f3
tree416d7fd8c274776d72fe7a2c7cc7d9adb46eab3a
parent3a3f7c429097982ff99fbeeffc180b8ede52dda5
Fix bug with CMake project variable

"
I tried to embed the check source code into my project in a "3rdparty" folder. Turns out that the build fails because of the usage of CMAKE_PROJECT_NAME instead of PROJECT_NAME in the check CMakeLists.txt

CMAKE_PROJECT_NAME is the name of the topmost project, that is in my case my own project.
Changing to PROJECT_NAME worked fine.
"

https://github.com/libcheck/check/issues/194

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
CMakeLists.txt