Skip to content

Commit

Permalink
Activate cmake policy CMP0042 to use rpaths on MacOSX (#6).
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev E. Givon committed Sep 13, 2016
1 parent 151339d commit d5ea772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cnpy/CMakeLists.txt
@@ -1,13 +1,14 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0042 NEW)
endif(COMMAND cmake_policy)

project(CNPY)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

option(ENABLE_STATIC "Build static (.a) library" ON)
option(ENABLE_STATIC "Build static (.a) library" OFF)

add_library(cnpy SHARED "cnpy.cpp")
target_link_libraries(cnpy z)
Expand Down

0 comments on commit d5ea772

Please sign in to comment.