mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-19 08:46:42 +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")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
option(INSTALL_HEADERS "Install valijson Headers." FALSE)
|
option(valijson_INSTALL_HEADERS "Install valijson Headers." FALSE)
|
||||||
option(BUILD_EXAMPLES "Build valijson Examples." FALSE)
|
option(valijson_BUILD_EXAMPLES "Build valijson Examples." FALSE)
|
||||||
option(BUILD_TESTS "Build valijson Tests." TRUE)
|
option(valijson_BUILD_TESTS "Build valijson Tests." TRUE)
|
||||||
|
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||||
|
|
||||||
if(INSTALL_HEADERS)
|
if(valijson_INSTALL_HEADERS)
|
||||||
install(DIRECTORY include/ DESTINATION include)
|
install(DIRECTORY include/ DESTINATION include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT BUILD_TESTS AND NOT BUILD_EXAMPLES)
|
if(NOT valijson_BUILD_TESTS AND NOT valijson_BUILD_EXAMPLES)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user