mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
cmake: Add prefix to public options
This commit is contained in:
parent
c2f22fddf5
commit
61355b7d73
@ -3,17 +3,17 @@ project (valijson)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
option(INSTALL_HEADERS "Install valijson Headers." FALSE)
|
||||
option(BUILD_EXAMPLES "Build valijson Examples." FALSE)
|
||||
option(BUILD_TESTS "Build valijson Tests." TRUE)
|
||||
option(valijson_INSTALL_HEADERS "Install valijson Headers." FALSE)
|
||||
option(valijson_BUILD_EXAMPLES "Build valijson Examples." FALSE)
|
||||
option(valijson_BUILD_TESTS "Build valijson Tests." TRUE)
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
|
||||
if(INSTALL_HEADERS)
|
||||
if(valijson_INSTALL_HEADERS)
|
||||
install(DIRECTORY include/ DESTINATION include)
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_TESTS AND NOT BUILD_EXAMPLES)
|
||||
if(NOT valijson_BUILD_TESTS AND NOT valijson_BUILD_EXAMPLES)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user