mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 23:42:57 +00:00
Fix find_library() call for gtest library (issue #695)
This commit is contained in:
parent
9d3f2b1225
commit
fdeba03216
7
third_party/CMakeLists.txt
vendored
7
third_party/CMakeLists.txt
vendored
@ -36,7 +36,12 @@ if(NOT USE_SHARED_GTEST AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gtest ${CMAKE_CURRENT_SOURCE_DIR}/gtest/include)
|
||||
add_library(gtest ${CMAKE_CURRENT_SOURCE_DIR}/gtest/src/gtest-all.cc)
|
||||
else()
|
||||
find_library(gtest)
|
||||
find_library(LIBGTEST_LIBRARY NAMES gtest)
|
||||
find_path(LIBGTEST_INCLUDE_DIR NAMES "gtest/gtest.h")
|
||||
|
||||
set(libs3rdparty ${libs3rdparty} ${LIBGTEST_LIBRARY})
|
||||
include_directories(${LIBGTEST_INCLUDE_DIR})
|
||||
|
||||
check_cxx_source_compiles("
|
||||
#include <gtest/gtest.h>
|
||||
int main() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user