mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Merge pull request #460 from Krzmbrzl/revamp-cmake
CMake: Fix invalid syntax
This commit is contained in:
commit
3207df8236
@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 3.10)
|
|||||||
|
|
||||||
project(Tracy LANGUAGES CXX)
|
project(Tracy LANGUAGES CXX)
|
||||||
|
|
||||||
option(TRACY_STATIC "Whether to build Tracy as a static library" NOT ${BUILD_SHARED_LIBS})
|
if(${BUILD_SHARED_LIBS})
|
||||||
|
set(DEFAULT_STATIC OFF)
|
||||||
|
else()
|
||||||
|
set(DEFAULT_STATIC ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(TRACY_STATIC "Whether to build Tracy as a static library" ${DEFAULT_STATIC})
|
||||||
|
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user